Skip to content
Workflows

Workflow Action: OpenRouter Generate Response

Learn how to use the OpenRouter Generate Response workflow action in GHL Customer Care to generate AI-powered messages, automate responses, and enhance workflows with AI.

6 min read1,250 words9 explained images
View as markdownOpen in ClaudeOpen in ChatGPT
Each image has a one line explanation. Switch to full detail for the step it belongs to, the fields and buttons involved, examples and the whole procedure.
On this page
  1. Key Benefits of OpenRouter: Generate Response
  2. Connect Your OpenRouter Account
  3. Steps to Connect OpenRouter
  4. Using System Prompt vs Prompt
  5. How To Setup OpenRouter: Generate Response Action
  6. Step 1: Add a New Action to the Workflow
  7. Navigate to Automation → Workflows.
  8. Step 2: Select the OpenRouter App
  9. Inside the Actions panel, select the Apps tab.
  10. Step 3: Choose the Generate Response Action
  11. Click OpenRouter to expand the available actions.
  12. Step 4: Configure the Generate Response Action
  13. Action Name
  14. System Prompt
  15. Prompt
  16. Model Selection
  17. Step 5: Test the Action
  18. Step 6: Save the Action
  19. Frequently Asked Questions
  20. Related Articles

AI-powered responses allow workflows to generate dynamic messages, summaries, and contextual outputs automatically. The Generate Response action enables GHL Customer Care users to connect workflows with advanced AI models through OpenRouter, allowing automated responses based on prompts, workflow data, and contact information.

This makes it possible to automate personalized messaging, summarize conversations, or generate intelligent responses without manual input.


TABLE OF CONTENTS


What is Generate Response Workflow Action?

The Generate Response workflow action allows workflows in GHL Customer Care to generate AI-powered responses using models accessed through OpenRouter. By sending prompts to a selected AI model, workflows can automatically produce dynamic responses based on instructions, context, and workflow variables.

OpenRouter acts as a gateway that provides access to multiple AI models. This allows GHL Customer Care users to select the model that best fits their automation needs, whether generating conversational replies, summarizing data, or producing personalized marketing content.

When the workflow reaches this action, the prompt is sent to the selected model, the model generates a response, and the result becomes available as an output variable that can be used in later workflow steps such as sending messages or updating records.


Key Benefits of OpenRouter: Generate Response

AI response generation unlocks powerful automation capabilities inside workflows by enabling dynamic and context-aware messaging. Using OpenRouter expands this capability by providing access to multiple AI models through a single integration.

  • Multi-Model Access: Connect to multiple AI providers through OpenRouter and choose the best model for each automation task.
  • Dynamic AI Responses: Automatically generate responses using prompts and workflow variables for highly personalized outputs.
  • Flexible Automation: Use AI-generated responses in SMS, email, internal notifications, or CRM updates.
  • Custom Prompt Control: Define system prompts and instructions to control tone, behavior, and formatting of AI responses.
  • Scalable Automation: Generate intelligent responses across large workflows without manual intervention.

Connect Your OpenRouter Account

Before using the Generate Response action in workflows, the OpenRouter integration must be connected. This connection allows GHL Customer Care to securely communicate with OpenRouter’s AI models using your API key.

Connecting the integration ensures that workflows can send prompts to AI models and receive generated responses.

Steps to Connect OpenRouter

  1. Navigate to Settings.

  2. Select Integrations.

  3. Locate OpenRouter from the integrations list.

  4. Click Connect.

  5. Enter your OpenRouter API Key.

  6. Click Save to complete the integration.

Steps to Connect OpenRouter (image 1 of 9) What this shows Navigate to Settings. What this shows Illustrates the "Steps to Connect OpenRouter" section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Steps to Connect OpenRouter" section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Navigate to Settings. Select Integrations. Locate OpenRouter from the integrations list. Click Connect. Enter your OpenRouter API Key. Click Save to complete the integration. Immediately after, the guide continues: Understanding the difference between the System Prompt and the Prompt is important for creating effective AI-generated responses. Image 1 of 9 Where to goNavigate to Settings. Select Integrations. Locate OpenRouter from the integrations list. Click Connect. Enter your OpenRouter API Key. Click Save to complete the integration.
Buttons and menus referenced SettingsIntegrationsOpenRouterConnectOpenRouter API KeySave
Next stepUnderstanding the difference between the System Prompt and the Prompt is important for creating effective AI-generated responses.
All 6 steps in this procedure
  1. Navigate to Settings.
  2. Select Integrations.
  3. Locate OpenRouter from the integrations list.
  4. Click Connect.
  5. Enter your OpenRouter API Key.
  6. Click Save to complete the integration.
Steps to Connect OpenRouter (image 2 of 9) What this shows Navigate to Settings. What this shows Illustrates the "Steps to Connect OpenRouter" section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Steps to Connect OpenRouter" section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Navigate to Settings. Select Integrations. Locate OpenRouter from the integrations list. Click Connect. Enter your OpenRouter API Key. Click Save to complete the integration. Immediately after, the guide continues: Understanding the difference between the System Prompt and the Prompt is important for creating effective AI-generated responses. Image 2 of 9 Where to goNavigate to Settings. Select Integrations. Locate OpenRouter from the integrations list. Click Connect. Enter your OpenRouter API Key. Click Save to complete the integration.
Buttons and menus referenced SettingsIntegrationsOpenRouterConnectOpenRouter API KeySave
Next stepUnderstanding the difference between the System Prompt and the Prompt is important for creating effective AI-generated responses.
All 6 steps in this procedure
  1. Navigate to Settings.
  2. Select Integrations.
  3. Locate OpenRouter from the integrations list.
  4. Click Connect.
  5. Enter your OpenRouter API Key.
  6. Click Save to complete the integration.

Using System Prompt vs Prompt

Understanding the difference between the System Prompt and the Prompt is important for creating effective AI-generated responses.

The System Prompt defines the AI’s personality, behavior, or rules. It remains consistent across requests and helps control how the AI behaves.

The Prompt defines the specific task or question the AI should complete.

Example configuration:

System Prompt:

You are a friendly sales assistant that writes short and persuasive messages.

Prompt:

Create a follow-up message for {{contact.first_name}} who downloaded our pricing guide.

This separation allows workflows to maintain a consistent AI behavior while dynamically generating responses for different contacts.


How To Setup OpenRouter: Generate Response Action

After connecting the OpenRouter integration, the Generate Response workflow action can be added to a workflow to generate AI-powered responses automatically. 

This action sends a prompt to the selected AI model through OpenRouter and returns the generated response, which can then be used in later workflow steps such as sending messages or updating CRM records.

Step 1: Add a New Action to the Workflow

  1. Open an existing workflow or create a new workflow.

  2. In the workflow builder, click Add to insert a new step.

  3. The Actions panel will appear on the right side of the screen.

Navigate to Automation → Workflows. (image 3 of 9) What this shows Navigate to Automation → Workflows. What this shows Illustrates the "Navigate to Automation → Workflows." section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Navigate to Automation → Workflows." section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Navigate to Automation → Workflows. Open an existing workflow or create a new workflow. In the workflow builder, click Add to insert a new step. The Actions panel will appear on the right side of the screen. Immediately after, the guide continues: Inside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter. Image 3 of 9 Where to goNavigate to Automation → Workflows. Open an existing workflow or create a new workflow. In the workflow builder, click Add to insert a new step. The Actions panel will appear on the right side of the screen.
Buttons and menus referenced Automation → WorkflowsAddActions panel
Next stepInside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter.
All 4 steps in this procedure
  1. Navigate to Automation → Workflows.
  2. Open an existing workflow or create a new workflow.
  3. In the workflow builder, click Add to insert a new step.
  4. The Actions panel will appear on the right side of the screen.
Navigate to Automation → Workflows. (image 4 of 9) What this shows Navigate to Automation → Workflows. What this shows Illustrates the "Navigate to Automation → Workflows." section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Navigate to Automation → Workflows." section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Navigate to Automation → Workflows. Open an existing workflow or create a new workflow. In the workflow builder, click Add to insert a new step. The Actions panel will appear on the right side of the screen. Immediately after, the guide continues: Inside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter. Image 4 of 9 Where to goNavigate to Automation → Workflows. Open an existing workflow or create a new workflow. In the workflow builder, click Add to insert a new step. The Actions panel will appear on the right side of the screen.
Buttons and menus referenced Automation → WorkflowsAddActions panel
Next stepInside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter.
All 4 steps in this procedure
  1. Navigate to Automation → Workflows.
  2. Open an existing workflow or create a new workflow.
  3. In the workflow builder, click Add to insert a new step.
  4. The Actions panel will appear on the right side of the screen.

Step 2: Select the OpenRouter App

  1. Inside the Actions panel, select the Apps tab.

  2. Scroll through the installed applications list.

  3. Locate OpenRouter.

Inside the Actions panel, select the Apps tab. (image 5 of 9) What this shows Inside the Actions panel, select the Apps tab. What this shows Illustrates the "Inside the Actions panel, select the Apps tab." section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Inside the Actions panel, select the Apps tab." section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Inside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter. Immediately after, the guide continues: Click OpenRouter to expand the available actions. Select Generate Response. Image 5 of 9 What to chooseInside the Actions panel, select the Apps tab. Scroll through the installed applications list. Locate OpenRouter.
Buttons and menus referenced AppsOpenRouter
Next stepClick OpenRouter to expand the available actions. Select Generate Response.
All 3 steps in this procedure
  1. Inside the Actions panel, select the Apps tab.
  2. Scroll through the installed applications list.
  3. Locate OpenRouter.

Step 3: Choose the Generate Response Action

  1. Click OpenRouter to expand the available actions.

  2. Select Generate Response.

This action runs a prompt through the selected AI model and returns the generated response to the workflow.

Click OpenRouter to expand the available actions. (image 6 of 9) What this shows This action runs a prompt through the selected AI model and returns the generated response to the workflow. What this shows Illustrates the "Click OpenRouter to expand the available actions." section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Click OpenRouter to expand the available actions." section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: This action runs a prompt through the selected AI model and returns the generated response to the workflow. Immediately after, the guide continues: After selecting the action, the Generate Response configuration panel will open. This panel contains the fields used to define how the AI should behave and what response it should generate. Image 6 of 9 What this coversThis action runs a prompt through the selected AI model and returns the generated response to the workflow.
Buttons and menus referenced OpenRouterGenerate Response
Next stepAfter selecting the action, the Generate Response configuration panel will open. This panel contains the fields used to define how the AI should behave and what response it should generate.
All 2 steps in this procedure
  1. Click OpenRouter to expand the available actions.
  2. Select Generate Response.

Step 4: Configure the Generate Response Action

After selecting the action, the Generate Response configuration panel will open. This panel contains the fields used to define how the AI should behave and what response it should generate.

Action Name

The Action Name field allows you to give the workflow action a custom name. This is useful when workflows contain multiple AI actions and you want to easily identify their purpose.

Example:

Generate Lead Follow-Up Email

System Prompt

The System Prompt defines the role, tone, and behavior the AI model should follow when generating responses. This instruction helps guide how the AI interprets prompts and structures its replies.

Use this field to establish the AI’s role or personality.

Example:

You are a helpful front office assistant that provides clear, professional responses to customer inquiries.
System Prompt (image 7 of 9) What this shows You are a helpful front office assistant that provides clear, professional responses to customer inquiries. What this shows Illustrates the "System Prompt" section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "System Prompt" section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: You are a helpful front office assistant that provides clear, professional responses to customer inquiries. Immediately after, the guide continues: The Prompt defines the specific task the AI should perform. This is the instruction sent to the selected AI model. Image 7 of 9 What this coversYou are a helpful front office assistant that provides clear, professional responses to customer inquiries.
Buttons and menus referenced System Prompt
Next stepThe Prompt defines the specific task the AI should perform. This is the instruction sent to the selected AI model.

Prompt

The Prompt defines the specific task the AI should perform. This is the instruction sent to the selected AI model.

Prompts can include workflow variables to dynamically generate responses based on contact data or workflow context.

Example prompt:

You are an Email Assistant. Your task is to write clear, professional emails based on the user's intent, audience, and key details.
Prompt (image 8 of 9) What this shows You are an Email Assistant. What this shows Illustrates the "Prompt" section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Prompt" section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: You are an Email Assistant. Your task is to write clear, professional emails based on the user's intent, audience, and key details. Immediately after, the guide continues: The Model dropdown allows you to select which AI model OpenRouter should use to generate the response. Image 8 of 9 What this coversYou are an Email Assistant. Your task is to write clear, professional emails based on the user's intent, audience, and key details.
Buttons and menus referenced Promptworkflow variables
Next stepThe Model dropdown allows you to select which AI model OpenRouter should use to generate the response.

Model Selection

The Model dropdown allows you to select which AI model OpenRouter should use to generate the response.

Different models provide different capabilities such as:

  • Faster response generation

  • More advanced reasoning

  • Improved creative writing

  • Lower cost per request

Select the model that best fits the needs of your workflow automation.

Model Selection (image 9 of 9) What this shows Select the model that best fits the needs of your workflow automation. What this shows Illustrates the "Model Selection" section of "Workflow Action: OpenRouter Generate Response". This screenshot appears in the "Model Selection" section of "Workflow Action: OpenRouter Generate Response". The text alongside this image reads: Select the model that best fits the needs of your workflow automation. This part of the guide covers 4 fields, listed below. Immediately after, the guide continues: Before saving the workflow step, it is recommended to test the action to confirm the AI model generates the expected output. Image 9 of 9 What to chooseSelect the model that best fits the needs of your workflow automation.
Fields in this part of the guide Faster response generationMore advanced reasoningImproved creative writingLower cost per request
Buttons and menus referenced Model
Next stepBefore saving the workflow step, it is recommended to test the action to confirm the AI model generates the expected output.
All 4 steps in this procedure
  1. Faster response generation
  2. More advanced reasoning
  3. Improved creative writing
  4. Lower cost per request

Step 5: Test the Action

Before saving the workflow step, it is recommended to test the action to confirm the AI model generates the expected output.

  1. Click Test Action.

  2. The system will execute the prompt using the selected model.

  3. The generated response will appear in the Test Action results panel.

Testing allows you to adjust prompts and refine results before activating the workflow.

Step 6: Save the Action

Once the configuration is complete:

  1. Click Save Action.

  2. The AI response generation step will now be part of the workflow.

The output generated by this action can be used in later workflow steps such as:

  • Sending SMS messages

  • Sending emails

  • Creating internal notes

  • Updating CRM fields

  • Triggering conditional logic

This allows workflows to automatically generate intelligent responses without requiring manual input.


Frequently Asked Questions

Q: What is OpenRouter?

OpenRouter is a platform that provides access to multiple AI models through a single API, allowing users to choose the best model for different tasks.

Q: Can I use workflow variables inside prompts?

Yes. Workflow variables such as contact fields, custom fields, or previous action outputs can be included inside prompts to generate personalized responses.

Q: Where is the AI-generated response stored?

The generated response is saved as a workflow output variable that can be used in later workflow actions.

Q: What happens if the AI model fails to generate a response?

If the AI model fails or returns an error, the workflow will proceed based on the configured automation logic. Testing workflows before activation is recommended.

Q: Can I use the generated response in SMS or email messages?

Yes. The AI-generated output can be inserted into Send SMS, Send Email, or other messaging actions inside the workflow.

Q: Can OpenRouter responses be used with conditional workflow logic?

Yes. Generated responses can be evaluated in later workflow steps to determine conditional paths.


Was this guide helpful?

Related guides