In this article
What Is the Generate Response Action? How the Action Works Connecting Your OpenRouter Account Action Configuration Using the Generated Output Common Use CasesThe Generate Response action allows you to use advanced AI models directly within workflows to create dynamic, context-aware responses from prompts you define. This enables automated content creation, intelligent replies, summarization, and AI-driven decision logic inside your automation flows.
The action sends your prompt to the selected AI model and returns a generated response that can be used in later workflow steps. This makes it possible to build automated messaging, personalized follow-ups, and structured AI-powered processes without manual input.
What Is the Generate Response Action?
The Generate Response action enables workflows to send prompts to an AI model and receive generated output in real time. The response can then be inserted into messages, stored in custom fields, or used to drive conditional workflow logic.
This action supports:
Custom prompts
System-level behavioral instructions
Workflow variables
Multiple AI model selections
How the Action Works
When a workflow reaches this action:
The selected AI model is invoked
The optional System Prompt defines tone or behavior
The main Prompt is sent to the model
The model generates a response
The response becomes available for use in later workflow actions
The output can be mapped or reused anywhere within the workflow.
Connecting Your OpenRouter Account
Before using the Generate Response action, your account must be connected.
Connect OpenRouter from the Integrations Page
Navigate toSettings → Integrations, locateOpenRouter, and clickConnectto authorize your account using your API key.
After successful authentication, OpenRouter actions will appear inside workflows.
Add Generate Response from the Apps Tab
Inside the Workflow Builder, clickAdd Action, open theAppstab, and selectOpenRouter → Generate Response.
This makes the AI action available within your workflow sequence.
Action Configuration
The Generate Response action includes three primary configuration fields.
System Prompt (Optional)
The System Prompt defines the AI’s overall role, tone, or behavior. It influences how the model responds but does not contain the primary request.
Examples:
“You are a helpful customer support assistant.”
“Respond in a concise and professional tone.”
“You are an expert marketing copywriter.”
Use this field to guide style, formatting, or intent.
Prompt (Required)
The Prompt contains the main instruction or question sent to the AI model.
You may include:
Plain text
Workflow variables
Custom instructions
Examples:
“Write a follow-up email for {{contact.firstname}} about their missed appointment.”
“Summarize the following message in one sentence: {{inboundmessage.body}}”
“Generate a short sales pitch for this service: {{custom.servicedescription}}”
This field determines what the AI produces.
Model (Required)
Select the AI model that will generate the response.
Models may differ in:
Response quality
Speed
Cost
Creativity
Choose a model appropriate for your workflow objective.
Using the Generated Output
The AI-generated response can be used in several ways:
Inserted into SMS, Email, or messaging actions
Stored in a custom field
Used inside conditional logic
Passed to additional AI or workflow actions
This enables advanced automation sequences based on AI output.
Common Use Cases
Below are practical examples of how the Generate Response action can be used.
AI-Generated Replies
Automatically draft responses to inbound messages.
Message Summarization
Condense long form submissions or conversation threads into brief summaries.
Personalized Follow-Ups
Create dynamic follow-up emails or SMS using contact data.
Marketing Content Generation
Generate headlines, ad copy, or campaign messaging.
Intelligent Workflow Routing
Use AI output to det