Templates / Generate and evaluate AI prompts with Gemini, OpenRouter, Groq, Cohere and Supabase

Generate and evaluate AI prompts with Gemini, OpenRouter, Groq, Cohere and Supabase

Ready for 3.0

by Kanishka Shrivastava ✓ · 3,508 views · created 2026-06-02 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model, OpenRouter Chat Model, Groq Chat Model and Cohere Chat Model and 1 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Extract Goal (Code): runs custom JavaScript code
  2. Creative Prompt Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
  3. Marketing Prompt Agent (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
  4. Technical Prompt Agent (AI Agent): runs an AI agent, with model: Groq Chat Model
  5. Merge: merges the data from its input branches
  6. Combine Agent Outputs (Code): runs custom JavaScript code
  7. Best Prompt Evaluator (AI Agent): runs an AI agent, with model: Cohere Chat Model
  8. Respond to Webhook: sends the response back to the webhook caller
  9. Create a row (Supabase): uses Supabase

Services it uses

Google Gemini Chat ModelOpenRouter Chat ModelGroq Chat ModelCohere Chat ModelSupabase

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Rarely used nodes in this template: @n8n/n8n-nodes-langchain.lmChatCohere

Nodes used (10)

From the author

Quick overview This workflow receives a goal via webhook, generates three prompt candidates using Google Gemini, OpenRouter, and Groq, has Cohere evaluate and select the best prompt, then returns the result to the caller and stores the goal and winning prompt…

Excerpt from Kanishka Shrivastava 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.