OpenRouter: Generate AI responses with access to over 300 different AI models

Use OpenRouter in CrocoClick to generate AI responses directly in your automations: Generate Response action configuration, prompts, templates, use cases and best practices.

Written By Baptiste Lorreyte

Last updated About 1 month ago

Use advanced AI models directly in your CrocoClick automations to generate dynamic, personalized, and contextual responses.

No copy-pasting.
No manual intervention.
No external tools.

The Generate Response action lets you create content, summarize messages, write responses, or drive decisions automatically in your flows.


What is the Generate Response action?

The Generate Response action allows an automation to send a prompt to an AI model via OpenRouter and receive a response generated in real time.

The response can then be:

  • Inserted into an SMS or email

  • Stored in a custom field

  • Used in a logical condition

  • Reused in another action

It supports:

  • Custom prompts

  • System instructions (tone, role, style)

  • Automation variables

  • Selection of multiple AI models


How does the action work?

When automation reaches this step:

  1. The selected AI model is invoked

  2. The System Prompt (optional) defines the role or tone

  3. The main prompt is sent

  4. The model generates a response

  5. The response becomes available for subsequent steps

The output can be mapped or reused anywhere in the automation.


Connect your OpenRouter account

Before using Generate Response, you must connect OpenRouter.

  1. Go to Settings → Integrations

  2. Locate OpenRouter

  3. Click Connect

  4. Enter your OpenRouter API key

Once authenticated, OpenRouter actions will appear in your automations.


Add Generate Response to an automation

  1. Go to Automation → Workflows

  2. Open or create an automation

  3. Click Add Action

  4. Go to the Apps tab

  5. Select OpenRouter → Generate Response

The AI action is now available in your sequence.


Configuring the action

The action has three main fields.

1. System Prompt (optional)

The System Prompt defines the overall behavior of the model.

It influences how the model responds but does not contain the main request.

Examples:

  • "You are a professional customer support assistant."

  • "Respond concisely and formally."

  • "You are an expert marketing copywriter."

Use this field to control:

  • The tone

  • The structure

  • The role

  • The output format


2. Prompt (required)

The Prompt contains the main instruction sent to the model.

You can include:

  • Plain text

  • Automation variables

  • Detailed instructions

Examples:

Rédige un email de relance pour {{contact.first_name}} concernant son rendez-vous manqué. 
Résume ce message en une phrase : {{inbound_message.body}} 
Crée un pitch commercial court pour ce service : {{custom.service_description}} 

This field determines what the AI produces.


3. Model (required)

Select the AI model that will generate the response.

Models differ according to:

  • Response quality

  • Speed

  • Cost

  • Creativity

Choose the model that suits your objective:

  • Lightweight templates → simple tasks

  • Advanced templates → complex or creative content


Use the generated response

The AI response can be used in several ways:

  • Inserted into a text message

  • Inserted into an email

  • Stored in a custom field

  • Used in a condition (If/Else)

  • Transmitted to another AI action

This allows you to create advanced AI-driven automations.


Concrete use cases

Intelligent automatic responses

Automatically compose responses to incoming messages.

Automatic summary

Condense a long form or conversation into a short summary for your team.

Personalized follow-ups

Create dynamic emails or text messages using contact data.

Marketing content generation

Generate:

  • Headlines

  • Taglines

  • Advertising copy

  • Short scripts

Smart routing

Use AI output to decide on the next step:

  • If "interested" → sales pipeline

  • If "not interested" → nurture

  • If "urgent" → internal notification

Best practices

  • Be specific in your prompts

  • Use the System Prompt to control the tone

  • Test multiple templates

  • Keep your instructions clear and concise

  • Use variables to personalize

  • Store responses if automation involves multiple steps

The more structured your prompt is, the better the output will be.


FAQ

Troubleshooting

If the action does not work:

  • Check that the integration is connected

  • Verify the validity of the API key

  • Verify that the correct template is selected

  • Check the execution logs