What it is for
Integrate with Contextual AI to automate document processing and AI workflows
Contextual AI triggers check for new data periodically, every few minutes, so there may be a short delay.
Set up the connection
Authentication type: Custom credentials
- 1Sign in to Contextual AI 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 Contextual AI step, click "Connect" and paste it into: API Key, Base URL.
- 4Save the connection: it is stored encrypted and is never shown in plain text.
| Connection field | Type | Required |
|---|---|---|
| API Key | Secret key | Yes |
| Base URL | Text | No |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Query Agent: fill in Agent, Message; use the data selector to map values from earlier steps.
- Generate Text: fill in Prompt, Model Version; use the data selector to map values from earlier steps.
- Ingest Document: fill in Datastore, Document File; 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.
Triggers (1)
Events that can start a flow. Expand each one to see its fields.
New AgentPeriodic check0 fields
No fields to configure.
Actions (7)
Operations available as flow steps. Expand each one to see its fields.
Query Agent4 fields
| Field | Type | Required |
|---|---|---|
| Agent | List (from your account) | Yes |
| Message | Long text | Yes |
| Conversation ID | Text | No |
| Include Retrieval Content | Yes / No | No |
Generate Text8 fields
| Field | Type | Required |
|---|---|---|
| Prompt | Long text | Yes |
| Model Version | Fixed list | Yes |
| Knowledge Sources | List of values | No |
| System Prompt | Long text | No |
| Max Tokens | Number | No |
| Temperature | Number | No |
| Top P | Number | No |
| Avoid Commentary | Yes / No | No |
Ingest Document4 fields
| Field | Type | Required |
|---|---|---|
| Datastore | List (from your account) | Yes |
| Document File | File | Yes |
| Custom Metadata | Key / value pairs | No |
| Configuration Override | Long text | No |
Parse File7 fields
| Field | Type | Required |
|---|---|---|
| Document File | File | Yes |
| Parse Mode | Fixed list | Yes |
| Page Range | Text | No |
| Enable Document Hierarchy | Yes / No | No |
| Enable Split Tables | Yes / No | No |
| Max Split Table Cells | Number | No |
| Figure Caption Mode | Fixed list | No |
Create Agent5 fields
| Field | Type | Required |
|---|---|---|
| Agent Name | Text | Yes |
| Description | Text | No |
| Datastores | Multi-select | No |
| System Prompt | Long text | No |
| Filter Prompt | Long text | No |
Invite Users2 fields
| Field | Type | Required |
|---|---|---|
| Users to Invite | List of values | Yes |
| Tenant Short Name | Text | Yes |
Create Datastore1 fields
| Field | Type | Required |
|---|---|---|
| Datastore Name | Text | Yes |
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
