# AI Completion

Sends system and user content to one AI model with an optional fallback model.

## Plan availability

| Feature | Free | Starter | Pro | Enterprise |
| --- | --- | --- | --- | --- |
| Active workflows | 3 | 10 | 45 | Unlimited |

Allowances follow the [published Chatigram pricing page](https://chatigram.com/pricing/). Your organization’s Billing & Plans screen confirms its subscription and current usage. Plans can change. Plan information reviewed 2026-11-10.


## When to use this node

Sends system and user content to one AI model with an optional fallback model.

Add **AI Completion** to a workflow branch using the node picker. Configure its fields in the inspector, then connect the next step.

## Before you begin

Connect ai in **App Connections** first. Select the intended account in this node; an account connected to a different service is not interchangeable. Available actions depend on the permissions granted to that connection.

## Configure the fields

| Field | What to enter |
| --- | --- |
| **OpenAI Account** | Optional saved connection. Used only by OpenAI (Connected Account); manual OpenAI API Keys remain separate. |
| **OpenAI API Keys** | Optional comma-separated OpenAI API key pool. |
| **Gemini API Keys** | Optional comma-separated Gemini API key pool. |
| **Groq API Keys** | Optional comma-separated Groq API key pool. |
| **OpenRouter API Keys** | Optional comma-separated OpenRouter API key pool. |
| **Custom API Keys** | Optional comma-separated Custom API key pool. Used only when Custom API is selected. |
| **Custom API URL** | Optional complete HTTP or HTTPS OpenAI-compatible chat-completion endpoint. Used exactly as supplied when Custom API is selected; no path is appended. |
| **AI Engine** | Provider used for the AI completion.<br>Choices: `openai`, `openai_connected`, `gemini`, `groq`, `openrouter`, `custom`.<br>Example/default shown in the editor: `openai`. |
| **AI Model** | Free-text provider model ID used for the completion.<br>Example/default shown in the editor: `gpt-5.4-mini`. |
| **AI Additional Parameters** | Optional provider/model-specific request parameters. Enter a valid JSON object as text. Example: {"reasoning_effort":"low","max_completion_tokens":1000,"temperature":0.7}. Leave empty to use the existing/default request behavior. Chatigram stores the entire field as a string. Parameter names and supported values depend on the selected provider/model; unsupported parameters may cause the request to fail. Only add supported parameters. Parameters override existing request defaults, including Groq Max Completion Tokens (default 900). Core prompt/model fields (including model and messages) are ignored. Applies only to the primary completion. |
| **Max Completion Tokens** | Maximum output tokens for Groq completions only. Must be a positive integer string. The executing stage's Additional Parameters can override this using max_completion_tokens.<br>Example/default shown in the editor: `900`. |
| **Fallback Engine** | Optional provider used once when the primary completion fails.<br>Choices: `openai`, `openai_connected`, `gemini`, `groq`, `openrouter`, `custom`. |
| **Fallback Model** | Optional free-text provider model ID retried after a failed primary completion. |
| **Fallback Additional Parameters** | Optional provider/model-specific request parameters. Enter a valid JSON object as text. Example: {"reasoning_effort":"low","max_completion_tokens":1000,"temperature":0.7}. Leave empty to use the existing/default request behavior. Chatigram stores the entire field as a string. Parameter names and supported values depend on the selected provider/model; unsupported parameters may cause the request to fail. Only add supported parameters. Parameters override existing request defaults, including Groq Max Completion Tokens (default 900). Core prompt/model fields (including model and messages) are ignored. Applies only when fallback executes; primary AI Additional Parameters are not carried over. |
| **System Content** | System instructions sent to the selected model.<br>Example/default shown in the editor: `You are a helpful, accurate AI assistant. Follow the user's instructions carefully and provide the best possible response.`. |
| **User Content** | The user's prompt or request. |

## Use the result

Choose the output from the variable picker in a later step. Output names below identify the values supplied by this node; the picker inserts the correct reference for your node instance.

| Output | Meaning / label |
| --- | --- |
| `response` | Response |
| `error` | Error |

## Connect the next step

Connect the continuation shown on the canvas. Some nodes calculate their branches from the configured options. Read each branch label in the editor and connect the paths your workflow needs.

## Test it in a workflow

1. Configure this node with a small, recognizable test input or a test resource.
2. Check the variables from preceding steps and the connection selected in the inspector.
3. Save the workflow. For event-driven flows, generate the actual event; use **Run** only for a Manual workflow.
4. Open **Workflow Activity** and check the outcome before enabling wider use.

## If something goes wrong

- Reconnect the account if authorization has expired, then verify its permissions on the specific resource.
- Check empty variables, selected resource IDs, and any fields that appeared after resource selection.
- Check the failed step in Workflow Activity before retrying. If the action may already have completed, inspect the destination first to avoid duplicates.
- Follow the [troubleshooting guide](/help/troubleshooting/) for a symptom-by-symptom checklist.

## Related guides

- [Work with variables](/workflows/variables/)
- [Understand branches and error handling](/workflows/branches/)
- [Browse all nodes](/reference/nodes/)
- [Ask AI](/nodes/ai-ask/)


## Catalog coverage

This is the currently documented selection. Chatigram continues to add nodes, triggers, App Connections, and integrations. Use each page’s review date and the current application selectors to check what is available now; this catalog is not a fixed limit on future features.
