# Request-IntelligenceXUserInput

Requests user input through the app-server.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.IntelligenceXClient`

**Outputs**

`IntelligenceX.Json.JsonValue` `IntelligenceX.OpenAI.AppServer.Models.UserInputResponse`

Requests user input through the app-server.

## Syntax

```
Request-IntelligenceXUserInput
-Questions <string[]>
[-Client <IntelligenceXClient>]
[-Raw]
[<CommonParameters>]
```

[#](#method-request-intelligencexuserinput-string-intelligencexclient-switchparameter)

## Examples

### Example 1

```powershell
Request-IntelligenceXUserInput -Questions "Repo name?", "Branch?"
```

Ask for two inputs

### Example 2

```powershell
Request-IntelligenceXUserInput -Questions "Continue?" -Raw
```

Return raw JSON response

### Example 3

```powershell
$response = Request-IntelligenceXUserInput -Questions "PR number?", "Merge now?"; $response.Answers
```

Use responses in script flow

## Parameters

**-Questions string[] required**

Questions to ask (minimum 1, maximum 3).

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

Client instance to use. Defaults to the active client.

**-Raw SwitchParameter optional**

Returns the raw JSON-RPC payload instead of typed response data.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:74BC76816D04C1FFAF72261B3D1097E97ED1E8FBB515760BB1D6BC9B21D3CF36 -->
