🔬 Conversational Razorpay Analytics with Google Gemini & Telegram Bot

308 views · 🔬 Document Extraction & Analysis

Description

📝 Description

Access your Razorpay insights instantly from Telegram—no dashboard, filters, or manual queries needed. Simply send messages like “show my payments”, “list recent orders”, or “check refunds”, and the bot retrieves the latest information from your Razorpay merchant account in seconds.

Powered by AI, the workflow understands your message, fetches the relevant Razorpay data, and transforms it into a clear, easy-to-read summary. Everything is delivered back to you within the same Telegram chat, giving you fast, convenient, and conversational access to your business analytics.

⚙️ How It Works

1. Trigger — Telegram Bot Message

The workflow starts when a user sends a message to your Telegram bot via the Telegram Trigger node.

2. Intent Classification

An AI model analyzes the incoming message and identifies what the user is asking for.

🔹 Orders Intent

Retrieves order information from Razorpay

Handles pagination and filtering logic

Uses AI to generate order summaries and insights

🔹 Refunds Intent

Queries Razorpay for refund events

Computes refund totals and status breakdowns

Produces formatted summaries with the AI model

🔹 General Chat Intent

Handles all non-transactional or fallback messages. Useful for:

💡 Use Cases

🧰 Requirements

🚀 Setup Instructions

Import this workflow into your n8n workspace.

Add and configure your Razorpay and Telegram credentials.

Activate the workflow.

Start chatting with your Telegram bot to receive Razorpay insights on demand.

🖼️ Workflow Components

This workflow includes the following nodes:

🔗 Nodes Used

Telegram, Telegram Trigger, AI Agent, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup