Score chatbot replies, log reviews, and alert your team with Mistral and Telegram
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Mistral Cloud Chat Model and Telegram.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Run Sample Conversation (Code): runs custom JavaScript code
- Set Configuration Parameters (Edit Fields (Set)): sets 4 fields: team_chat_id, rules, alert_max_score…
- Normalize Input Data (Code): runs custom JavaScript code
- Mistral Scoring Supervisor (Basic LLM Chain): sends a prompt to an LLM, with model: Mistral AI Model
- Parse Scoring Data (Code): runs custom JavaScript code
- Save Score to Data Table (Data table): uses Data table
- Route by Alert Condition (Switch): routes items into branches
- Send Telegram Alert (Telegram): uses Telegram
Services it uses
Other Telegram + Mistral AI templates (16)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow reviews each chatbot answer using Mistral Medium, stores an anonymized quality score in an n8n Data Table, and sends a Telegram alert when the answer is poor or the client seems unhappy or requests a human. How it works 1. Starts…