> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate text with Agent

> Generate text using a Cassidy Agent, which includes Knowledge Base access, brand voice, and configured capabilities.

Generate text using one of your [Agents](https://docs.cassidyai.com/agents/overview.md). Unlike the standard [Generate Text](https://docs.cassidyai.com/reference/actions/generate-text.md) action, this action uses the Agent's full configuration — including its Knowledge Base access, brand voice, instructions, and capabilities.

Use this when you want the same quality and context-awareness you get from chatting with an Agent, but inside a Workflow step.

**1. Add the action**

In the Workflow builder, click **+** between blocks and select **Generate Text with Cassidy Agent** from the action library.

![Action library with Generate Text with Cassidy Agent selected](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-0.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=b1454b903ee912a210bff46c4cc6cfdf)

![Adding the Generate Text with Cassidy Agent action between blocks](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-1.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=84db728bf9141b4fb3a3eb95bf8a0489)

**2. Rename the action (optional)**

Enter a descriptive name to make the action easier to identify and reference as a variable in later steps.

![Renaming the action block](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-2.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=50a12b66c5631724fb60f43e1acaf733)

**3. Select an Agent**

Choose which [Agent](https://docs.cassidyai.com/agents/overview.md) to use for this step. The Agent's [Knowledge Base](https://docs.cassidyai.com/knowledge-base/overview.md) access, instructions, and brand voice will all apply.

![Agent selector dropdown](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-3.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=c9d079d911fe7bc1cb941ed44373f008)

**4. Write a prompt**

Enter the prompt for the Agent. [Reference variables](https://docs.cassidyai.com/guides/prompt-engineering.md#workflow-prompts) from previous steps or the trigger using the **#** symbol to provide dynamic context.

![Prompt field with variable references](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-4.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=ad5b0c9cb469d1c7da8bed2cc56e4268)

**5. Configure Structured Output Fields (optional)**

If you need the AI to return data in a specific format with defined fields, set up [structured outputs](https://docs.cassidyai.com/workflows/advanced/structured-output-fields.md). This gives you named fields with specific data types you can reference individually in later steps.

![Structured Output Fields configuration](https://mintcdn.com/cassidy/PSOwom-PV6-w07rd/images/reference/generate-text-with-cassidy-agent-img-5.png?fit=max\&auto=format\&n=PSOwom-PV6-w07rd\&q=85\&s=a0c3b41a48a96ace9f5db669c86d661e)

**6. Configure Conversation Memory (optional)**

Enable [Conversation Memory](https://docs.cassidyai.com/workflows/advanced/conversation-memory.md) if you want the Workflow to retain conversation history and carry context across runs.

**7. Add Skills (optional)**

Expand **Skills** and click **Add Skill** to make additional published
Skills available in this step. Action-level Skills are added to the Skills
already attached to the selected Agent.

See [Use Skills in Workflow AI actions](https://docs.cassidyai.com/skills/using-skills.md#add-a-skill-to-a-workflow-ai-action).

**8. Adjust advanced model settings (optional)**

Under **Advanced Model Settings**:

* **Temperature** — Controls randomness. Lower values (e.g., 0.1) produce focused results; higher values (e.g., 1.0) produce more creative outputs. Default is 0.70.
* **Include Citations** — Toggle to include Knowledge Base citations in the output.

![Advanced Model Settings panel with temperature and citations](https://mintcdn.com/cassidy/RPk-aW2ZmzE0KYzC/images/reference/generate-text-with-cassidy-agent-img-6.png?fit=max\&auto=format\&n=RPk-aW2ZmzE0KYzC\&q=85\&s=ee3ef0c0009a2e82b7819fd8ad6f5ffd)

> [!NOTE]
>
> This action inherits [Connectors](https://docs.cassidyai.com/agents/connectors/overview.md), [Capabilities](https://docs.cassidyai.com/agents/capabilities/overview.md), [Skills](https://docs.cassidyai.com/skills/overview.md), and advanced settings from the selected Agent. To add tools like Web Search, configure them on the Agent itself. To enable data analysis and file generation, turn on [Code Execution & File Creation](https://docs.cassidyai.com/agents/advanced/code-execution-file-creation.md) for the Agent. If you need per-action control over connectors and capabilities, use the standard [Generate Text](https://docs.cassidyai.com/reference/actions/generate-text.md) action instead.

## Related

* [Generate Text](https://docs.cassidyai.com/reference/actions/generate-text.md)
* [Agents overview](https://docs.cassidyai.com/agents/overview.md)
* [Call a Workflow from an Agent](https://docs.cassidyai.com/agents/call-workflow.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.