What it is for
AI chatbot by xAI that answers questions, generates text, extracts data, and provides real-time insights.
Grok by xAI has no triggers: use it as an action in flows started by other apps, a schedule or a webhook.
Set up the connection
Authentication type: API key or token
- 1Sign in to Grok by xAI and look for the API or integrations section in its settings.
- 2Create an API key or token with the permissions you need and copy it.
- 3In flooows, add a Grok by xAI step, click "Connect" and paste it.
- 4Save the connection: it is stored encrypted and is never shown in plain text.
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Ask Grok: fill in Model, Messages; use the data selector to map values from earlier steps.
- Extract Data From Text: fill in Model, Text to Extract From, Fields to Extract; use the data selector to map values from earlier steps.
- Categorize Text: fill in Model, Text to Categorize, Categories; use the data selector to map values from earlier steps.
Tips
- •Test each step before publishing to see the exact output structure.
- •Enable retries on steps that call external services.
Actions (5)
Operations available as flow steps. Expand each one to see its fields.
Ask Grok18 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Messages | List of values | Yes |
| Quick Prompt (Alternative) | Long text | No |
| System Instructions | Long text | No |
| Image URL (Optional) | Text | No |
| Temperature | Number | No |
| Max Completion Tokens | Number | No |
| Response Format | Fixed list | No |
| JSON Schema | Long text | No |
| Enable Real-Time Search | Yes / No | No |
| Search Mode | Fixed list | No |
| Max Search Results | Number | No |
| Search Sources | Multi-select | No |
| Tools/Functions | List of values | No |
| Tool Choice | Fixed list | No |
| Parallel Tool Calls | Yes / No | No |
| Reasoning Effort | Fixed list | No |
| Memory Key | Text | No |
Extract Data From Text10 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Text to Extract From | Long text | Yes |
| Extraction Instructions | Long text | No |
| Fields to Extract | List of values | Yes |
| Enable Context Search | Yes / No | No |
| Strict Extraction | Yes / No | No |
| Temperature | Number | No |
| Max Completion Tokens | Number | No |
| Reasoning Effort | Fixed list | No |
| Include Confidence Scores | Yes / No | No |
Categorize Text10 fields
| Field | Type | Required |
|---|---|---|
| Model | List (from your account) | Yes |
| Text to Categorize | Long text | Yes |
| Categories | List of values | Yes |
| Allow Multiple Categories | Yes / No | No |
| Include Confidence Scores | Yes / No | No |
| Custom Instructions | Long text | No |
| Enable Context Search | Yes / No | No |
| Temperature | Number | No |
| Max Completion Tokens | Number | No |
| Reasoning Effort | Fixed list | No |
Generate Image4 fields
| Field | Type | Required |
|---|---|---|
| Image Prompt | Long text | Yes |
| Image Model | List (from your account) | Yes |
| Number of Images | Number | No |
| Response Format | Fixed list | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
Authentication error
The connection expired or the key was revoked: reconnect it from Connections.
Field not found or empty
Re-test the previous step and remap the field in the data selector.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
