Chat with AI Models via OpenRouter using Mistral

Go to Workflow
0 views
Built by Sarfaraz Muhammad Sajib Sarfaraz Muhammad Sajib
Created on July 14, 2025

Description

This n8n workflow demonstrates how to build an automated AI chat system using OpenRouter.ai.
It includes a manual trigger, sets a model and user message, sends a POST request to the OpenRouter chat API,
and summarizes the response.

Workflow Steps:
Manual Trigger – Starts the workflow when executed manually.
Set Node – Defines:
Model: mistralai/mistral-small-3.2-24b-instruct:free
Message: What is the meaning of life?
HTTP Request – Sends a POST request to https://openrouter.ai/api/v1/chat/completions
using Bearer Token Authentication with the model and message as JSON.
Summarize – Extracts and summarizes the AI’s response (choices[0].message.content).

Use Cases:
AI chatbot automation
Content summarization
Testing AI prompts in real-time
Educational demos using OpenRouter.ai
Lightweight conversational tools with no external server

This workflow was created by Sarfaraz Muhammad Sajib and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (1)

HTTP Request
n8n-nodes-base.httpRequest