What This Workflow Does
This automation solves the problem of manually checking cryptocurrency prices across multiple exchanges and platforms. Instead of constantly refreshing CoinMarketCap or exchange websites, users can simply message your Telegram bot to get instant price updates for any supported cryptocurrency.
The workflow connects CoinMarketCap's comprehensive crypto data API with Telegram's bot platform, creating a seamless interface for price queries. It handles incoming Telegram messages, processes the requested coin/token, fetches the latest data from CoinMarketCap, and formats a response with key metrics like current price, 24-hour change, market cap, and trading volume.
How It Works
1. Telegram Message Trigger
The workflow activates when a user sends a message to your Telegram bot containing a cryptocurrency symbol or name. The bot waits for incoming messages through Telegram's webhook system.
2. Coin Identification
The system parses the incoming message to identify which cryptocurrency the user is requesting. It handles variations in naming (e.g., "BTC", "Bitcoin", "XBT") and can be configured to support multiple languages.
3. API Data Fetch
The workflow makes an authenticated request to CoinMarketCap's API to retrieve the latest market data for the specified cryptocurrency. This includes price in multiple fiat currencies, percentage changes, market capitalization, and trading volume.
4. Response Formatting
The raw API data is transformed into a user-friendly message format. The workflow calculates additional metrics like price changes in absolute terms and formats numbers with appropriate decimal places and currency symbols.
5. Telegram Response
The formatted response is sent back to the user through Telegram's messaging interface. The message can include emoji indicators for price movements and links to more detailed information.
Who This Is For
This automation is ideal for:
- Crypto traders who need quick price checks without switching apps
- Investment groups sharing market data among members
- Crypto projects wanting to provide price updates to their community
- Financial educators teaching about cryptocurrency markets
- Anyone managing a Telegram group focused on cryptocurrency
Pro tip: You can extend this workflow to include price alerts by adding conditional logic that checks if prices cross certain thresholds.
What You'll Need
- A CoinMarketCap API key (free tier available)
- A Telegram bot token (created via BotFather)
- An n8n instance (self-hosted or cloud)
- A webhook URL that Telegram can access
Quick Setup Guide
- Download and import the JSON template into your n8n instance
- Add your CoinMarketCap API key in the credentials section
- Configure your Telegram bot token in the workflow settings
- Set up the webhook URL for your Telegram bot
- Test the workflow by messaging your bot with a cryptocurrency name
Key Benefits
Save hours of manual price checking - Get instant price updates without visiting multiple websites or apps. This workflow eliminates the need to constantly monitor exchanges manually.
Always have accurate market data - The integration pulls directly from CoinMarketCap's API, ensuring you're working with the most current and reliable cryptocurrency pricing information available.
Customizable responses - Easily modify what data points are included in responses to focus on the metrics that matter most to your users or trading strategy.
24/7 availability - Your Telegram bot works around the clock, providing price information whenever users need it, without any downtime.