Search K
Appearance
Appearance
The AI Web Chat node allows users to submit a prompt and optionally a context window to an AI web chat service (e.g., OpenAI) and receive a response. This response can either be interpreted as structured code (e.g., JSON) or plain text, and the result is stored in a named variable for downstream use.
Use this node to:
This node is configured via a modal form in the Workflow UI. Users must fill out the following fields:
| Field Label | Type | Required | Description |
|---|---|---|---|
| User Input | Text | ✅ | The primary user message or question to send to the AI service. |
| Context Window | Text | ✅ | Optional context to provide additional instruction or history to the AI. |
| Request Code Only | Boolean | ✅ | If set to true, the node attempts to extract a code block or object from the AI's response. |
| Save to Variable Name | Text | ✅ | The name of the variable in which to store the result from the AI service. |
💡 Context Window is pre-processed by appending system information such as country and timestamp before being sent to the AI service.
Let’s say a user wants to generate a sample JSON schema for a user profile form. They would:
"Create a JSON schema for a user profile with name, email, and age""Return only the object without explanation"trueuserSchemaThis will store the parsed JSON object (if successful) into userSchema.
ServiceAccount-OpenAI.Request Code Only is true, attempts to deserialize the result into a JSON object.Request Code Only = true."Fail" and a message (AIAgent) - AI Service Failed.This node depends on a configured ServiceAccount-OpenAI. This must be defined and accessible within your automation environment.
AISingleReequest() with system and user context prepended.Request Code Only is true, the response is successfully deserialized (or falls back gracefully).taskSuccess = true, statusReturn = "Completed"