This workflow corresponds to n8n.io template #3158 — we link there as the canonical source.
This workflow follows the Agent → OpenAI Chat 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 →
{
"id": "FQ0Uljxi7aIBdTFX",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Coinmarketcap Price Agent",
"tags": [],
"nodes": [
{
"id": "4f7066a4-9baa-428e-8b98-f4a3d0a6cf8a",
"name": "Telegram Send Message",
"type": "n8n-nodes-base.telegram",
"position": [
1280,
0
],
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger1').item.json.message.chat.id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "39c91f2b-87ed-46e9-8cc4-8c6ea547f170",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
660,
320
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "c87b5030-de78-4b86-8bb3-b93ee6b76a54",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
820,
320
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "ae3ec7a6-bf62-4381-acf8-05c7c425f471",
"name": "Telegram Trigger1",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
100,
0
],
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.1
},
{
"id": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
"name": "CoinMarketCap Price Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"notes": "{{ $json.sessionId }}",
"position": [
760,
0
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "360dc88a-a714-4ceb-be25-5ebe7d1e0273",
"name": "Adds SessionId",
"type": "n8n-nodes-base.set",
"position": [
420,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b5c25cd4-226b-4778-863f-79b13b4a5202",
"name": "sessionId",
"type": "string",
"value": "={{ $json.message.chat.id }}"
}
]
},
"includeOtherFields": true
},
"typeVersion": 3.4
},
{
"id": "8d53c2a0-a255-4fe9-8e5c-38c957825413",
"name": "CoinMarketCap Price",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
980,
320
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "symbol"
},
{
"name": "convert",
"value": "USD",
"valueProvider": "fieldValue"
}
]
},
"toolDescription": "The tool going to recieve input of cryptocurrency name and then request the price from CoinMarketCap and send the price back in a message.",
"parametersHeaders": {
"values": [
{
"name": "Accept",
"value": "application/json",
"valueProvider": "fieldValue"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
},
"typeVersion": 1.1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "595f494f-4109-4cd7-bf69-d1300d3a5408",
"connections": {
"Adds SessionId": {
"main": [
[
{
"node": "CoinMarketCap Price Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "CoinMarketCap Price Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Telegram Trigger1": {
"main": [
[
{
"node": "Adds SessionId",
"type": "main",
"index": 0
}
]
]
},
"CoinMarketCap Price": {
"ai_tool": [
[
{
"node": "CoinMarketCap Price Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "CoinMarketCap Price Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"CoinMarketCap Price Agent": {
"main": [
[
{
"node": "Telegram Send Message",
"type": "main",
"index": 0
}
]
]
}
}
}
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.
httpHeaderAuthopenAiApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Get real-time cryptocurrency prices directly in Telegram! This workflow integrates CoinMarketCap API with Telegram, allowing users to request live crypto prices simply by sending a message to the bot. Ideal for crypto traders, analysts, and enthusiasts who need quick and easy…
Source: https://n8n.io/workflows/3158/ — 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.
Agentic Telegram AI bot with LangChain nodes and new tools. Uses lmChatOpenAi, memoryBufferWindow, telegramTrigger, stickyNote. Event-driven trigger; 8 nodes.
Create a Telegram bot that combines advanced AI functionalities with LangChain nodes and new tools.
Coinmarketcap Price Agent. Uses telegram, lmChatOpenAi, memoryBufferWindow, telegramTrigger. Event-driven trigger; 7 nodes.
Multi Agent System Benefits. Uses gmailTool, lmChatOpenAi, agent, googleCalendarTool. Event-driven trigger; 46 nodes.
AI marketing Team Agent. Uses toolWorkflow, telegram, memoryBufferWindow, openAi. Event-driven trigger; 46 nodes.