Proxy de prix CoinMarketCap

Intermédiaire

Ceci est unFinance, AIworkflow d'automatisation du domainecontenant 7 nœuds.Utilise principalement des nœuds comme Set, Telegram, Agent, TelegramTrigger, LmChatOpenAi, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Bot de prix Telegram pour CoinMarketCap

Prérequis
  • Token Bot Telegram
  • Clé API OpenAI
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "FQ0Uljxi7aIBdTFX",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
    "templateCredsSetupCompleted": true
  },
  "name": "Coinmarketcap Price Agent",
  "tags": [],
  "nodes": [
    {
      "id": "4f7066a4-9baa-428e-8b98-f4a3d0a6cf8a",
      "name": "Telegram Envoyer un Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1280,
        0
      ],
      "webhookId": "0eeae020-ed6f-4900-ae38-d646d893171d",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Telegram Trigger1').item.json.message.chat.id }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "39c91f2b-87ed-46e9-8cc4-8c6ea547f170",
      "name": "OpenAI Modèle de Chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        660,
        320
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c87b5030-de78-4b86-8bb3-b93ee6b76a54",
      "name": "Mémoire Tampon Fenêtrée",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        820,
        320
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ae3ec7a6-bf62-4381-acf8-05c7c425f471",
      "name": "Telegram Déclencheur1",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        100,
        0
      ],
      "webhookId": "b33d2025-01c2-4386-b677-206a87a1856b",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
      "name": "Agent de Prix CoinMarketCap",
      "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": "Ajoute 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": "Prix CoinMarketCap",
      "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": {
          "id": "OKXROn8aWkgAOvvV",
          "name": "CoinMarketCap"
        }
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "595f494f-4109-4cd7-bf69-d1300d3a5408",
  "connections": {
    "360dc88a-a714-4ceb-be25-5ebe7d1e0273": {
      "main": [
        [
          {
            "node": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "39c91f2b-87ed-46e9-8cc4-8c6ea547f170": {
      "ai_languageModel": [
        [
          {
            "node": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ae3ec7a6-bf62-4381-acf8-05c7c425f471": {
      "main": [
        [
          {
            "node": "360dc88a-a714-4ceb-be25-5ebe7d1e0273",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8d53c2a0-a255-4fe9-8e5c-38c957825413": {
      "ai_tool": [
        [
          {
            "node": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "c87b5030-de78-4b86-8bb3-b93ee6b76a54": {
      "ai_memory": [
        [
          {
            "node": "3f3594f5-64d5-4d82-8d0f-0e5f58244d17",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "3f3594f5-64d5-4d82-8d0f-0e5f58244d17": {
      "main": [
        [
          {
            "node": "4f7066a4-9baa-428e-8b98-f4a3d0a6cf8a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Finance, Intelligence Artificielle

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds7
Catégorie2
Types de nœuds7
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34