This workflow follows the Agent → Cohere Embeddings recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "oracle-one-imersao-agentes-ia_aula03",
"nodes": [
{
"parameters": {
"promptType": "define",
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "Voc\u00ea \u00e9 o HR Buddy, assistente virtual de RH da ChocolaTech.\nREGRAS:\n\n1. Sempre responda em portugu\u00eas.\n2. Responda APENAS d\u00favidas relacionadas a RH.\nIDENTIFICA\u00c7\u00c3O DO FUNCION\u00c1RIO:\n- Se o usu\u00e1rio n\u00e3o disser quem \u00e9, pergunte o nome completo dele logo na primeira mensagem.\n- Use a ferramenta MySQL para buscar na tabela funcionarios usando SEMPRE o NOME COMPLETO informado pelo usu\u00e1rio na conversa.\n- Se encontrado: use os saldos de f\u00e9rias e banco de horas.\n- Se n\u00e3o encontrado: n\u00e3o invente dados pessoais. Responda apenas com base nas pol\u00edticas gerais de RH do Vector Store.\nUse a base de conhecimento para d\u00favidas gerais."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
-464,
-208
],
"id": "115f5685-7bcf-4c48-bacc-13bb4f7ed8f9",
"name": "AI Agent"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatCohere",
"typeVersion": 1,
"position": [
-624,
16
],
"id": "74040fc7-0f94-4a4e-872a-7a7636afac7d",
"name": "Cohere Chat Model",
"credentials": {
"cohereApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.message.chat.id }}"
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.4,
"position": [
-496,
16
],
"id": "3c8595e3-b6a5-4e24-aed1-05fc0e6557cb",
"name": "Simple Memory"
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolDescription": "Busque informa\u00e7\u00f5es sobre pol\u00edticas de RH, f\u00e9rias, hor\u00e1rios e rotinas da empresa Chocolatech.",
"memoryKey": {
"__rl": true,
"value": "vector_store_key",
"mode": "list",
"cachedResultName": "vector_store_key"
}
},
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"typeVersion": 1.3,
"position": [
-368,
16
],
"id": "3489fac8-3f8e-4b1c-9129-0a4d09aa2e21",
"name": "Simple Vector Store"
},
{
"parameters": {
"modelName": "embed-multilingual-v3.0"
},
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
"typeVersion": 1,
"position": [
-288,
224
],
"id": "367aa8b5-13dd-42ad-8c56-9ad4de915ccd",
"name": "Embeddings Cohere",
"credentials": {
"cohereApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "select",
"table": {
"__rl": true,
"value": "funcionarios",
"mode": "list",
"cachedResultName": "funcionarios"
},
"where": {
"values": [
{
"column": "nome",
"condition": "LIKE",
"value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('values0_Value', `Sempre use o formato %nome% (% no in\u00edcio e no fim) para busca parcial. \n\nExemplo: \n%Jo\u00e3o Silva%`, 'string') }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.mySqlTool",
"typeVersion": 2.5,
"position": [
-80,
16
],
"id": "317e9d30-39b6-453f-a964-be7e310904e9",
"name": "Select rows from a table in MySQL",
"credentials": {
"mySql": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.3,
"position": [
-848,
-208
],
"id": "c42759cd-0b26-45d2-8731-ac177b120803",
"name": "Telegram Trigger",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"text": "={{json.output }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
128,
-208
],
"id": "67020a32-f0f2-4a53-8378-ac19986a757d",
"name": "Send a text message",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Cohere Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Simple Vector Store": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Embeddings Cohere": {
"ai_embedding": [
[
{
"node": "Simple Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Select rows from a table in MySQL": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Send a text message",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": false
},
"versionId": "3a198f7a-0fb2-4683-91da-c1b5a0b6f9db",
"meta": {
"templateCredsSetupCompleted": true
},
"nodeGroups": [],
"id": "JO1pAuYncUs6w1hR",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
cohereApimySqltelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
oracle-one-imersao-agentes-ia_aula03. Uses agent, lmChatCohere, memoryBufferWindow, vectorStoreInMemory. Event-driven trigger; 8 nodes.
Source: https://github.com/laurofrancisco/oracle-one-imersao-agentes-ia/blob/main/workflows/aula03-agente-telegram.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
INM_clase_2_flujo_2_raiway. Uses agent, lmChatCohere, memoryBufferWindow, vectorStoreInMemory. Event-driven trigger; 8 nodes.
HR Buddy — Webhook + Guardrail. Uses telegramTrigger, chainLlm, lmChatGroq, agent. Webhook trigger; 17 nodes.
Description 📌 Overview
oracle-one-imersao-agentes-ia_aula02. Uses chatTrigger, agent, lmChatCohere, memoryBufferWindow. Chat trigger; 7 nodes.
Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.