> For the complete documentation index, see [llms.txt](https://docs.nected.ai/nected-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nected.ai/nected-docs/workflow/add-node/action-nodes/ai-agent-node/ai-response.md).

# AI Response

The **AI Response Node** enables your workflow to generate intelligent, context-aware text outputs directly from an AI model connected through your chosen AI provider.\
You can use it to generate summaries, recommendations, explanations, or any text-based responses using real-time workflow data.

### **Tabs Overview**

**1. Input Params**

This is where you configure the core input parameters for your AI Agent.

* **Connector:**\
  Select the connected AI provider (e.g., OpenAI, GoogleAI, Anthropic, or Vertex). This defines which model and API will be used for generating responses.
* **Model Name:**\
  Choose or specify the model you want to use, such as `gpt-4o-mini` or any other available under your selected provider.
* **Assistant ID:**\
  In case you've connected with an Assistant account, then in the same place where of add a model name, you'll get the option to add the assistant ID.
* **Message:**\
  Write the prompt or query that will be sent to the AI model.\
  You can also **use dynamic tokens** (for example: `{{.LoopBlock.output[1].ruleId}}`) to reference workflow data dynamically.\
  Learn more about using tokens here: [Use Tokens in the Editor](https://docs.nected.ai/nected-docs/references/pre-configured-tokens/use-tokens-in-the-editor)
* **System Prompt (Optional):**\
  Define the behavior or role of the AI model. For example:\
  `You are a helpful AI assistant. Provide accurate, concise, and helpful responses.`
* **Additional Options:**
  * **Add Confidence:** Include a confidence score for AI outputs.
  * **Format Markdown:** Toggle this on to receive formatted markdown responses.

<figure><img src="/files/aubZJwWXG0kaiUpwMsvG" alt=""><figcaption></figcaption></figure>

**2. Test Results**

This tab displays the model’s output when you test the node.\
The response is shown in **JSON format**, containing details like:

* Processing time
* Reference ID
* The actual AI-generated response

You can view it in **Raw**, **Pretty**, or **Table** formats for better readability.

<figure><img src="/files/7Bhm8RrTfIFlyFjugnyz" alt=""><figcaption></figcaption></figure>

**3. Settings**

Use this tab to configure additional behavior for the connector and AI model.

* **Timeout for API (s):** Maximum time allowed for API response.
* **Timeout for Webhook/Cron (s):** Time limit for webhook or scheduled executions.
* **Continue on Error:** Decide whether the workflow continues if the node fails.
* **Max Tokens:** Set the maximum number of tokens (characters/words) in the AI response.
* **Temperature:** Controls randomness—lower values produce consistent results, higher values produce creative outputs.
* **Max Retries:** Number of retry attempts if the model fails to respond.
* **Metadata Required:** Toggle on if additional metadata is needed.
* **Cache:** Enable caching to reuse previously generated results.
* **Time to Expire:** Define how long the cached results remain valid.

<figure><img src="/files/thhuhxZNHCAj0qnXZNHG" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nected.ai/nected-docs/workflow/add-node/action-nodes/ai-agent-node/ai-response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
