Blog
guide

How to Connect Dodo Payments to Grok Bot Using Sequel

Musthaq Ahamad
Musthaq Ahamad
How to Connect Dodo Payments to Grok Bot Using Sequel

Dodo Payments is the merchant of record behind a lot of indie and cross-border SaaS, which means it holds the real revenue picture including tax handling. Grok Bot is xAI's bot builder, an agent that keeps context and reaches your tools through plugins. Connect Dodo through Sequel and your bot can answer revenue questions without anyone opening the dashboard.

TL;DR

What you're connectingA Dodo Payments business to Grok Bot
Setup timeAbout 5 minutes
Setup methodOne chat message. Grok Bot has no MCP config file
Auth to DodoAPI key created with write access turned off
Auth to the botOAuth to Sequel. No key in the chat
Access levelRead-only
Environmentslive and test, as separate connections

What You'll Accomplish

Once this is wired up, you can ask your bot:

  • "What's total revenue this month, by product and by country?"
  • "Which subscriptions are due to renew in the next 7 days?"
  • "How many payments failed last week, and for which products?"

Prerequisites

  • A Sequel account: sign up free at sequel.sh
  • A Dodo Payments business with dashboard access
  • An API key created with write access unchecked
  • A Grok account with a bot you can send messages to

Step 1: Connect Dodo Payments to Sequel

In the Dodo dashboard, go to Developer → API Keys → Add API Key. Name it and leave Enable write access unchecked. Copy the key, Dodo shows it once.

Then sign in to sequel.sh, open Data Sources, click New Connection, and choose Dodo Payments.

Choose a connector

FieldWhat to enter
API keyThe key you copied from Dodo
Environmentlive for your real account, test if the key came from test mode

Sequel verifies the key and names the connection after your brand.

Step 2: Add Sequel to Grok Bot

Grok Bot has no MCP config file and no settings form to fill in. You add a server by asking the bot.

Open a chat with your bot and send this:

Add a custom MCP server called sequel at https://api.sequel.sh/mcp

Say custom server explicitly. Leave those words out and the bot searches the plugin marketplace instead of registering your endpoint.

Sequel's Grok Bot install card

The bot reads the name and URL back to you. Check both, confirm, and it posts a connect card in the chat. Click Authorize, sign in to Sequel, and approve access. The OAuth token stays on the connector side, so there is no API key to copy and nothing to keep in sync.

To confirm it registered, open Settings → Plugins → Yours. Every server on your account is listed there, including the ones you added by chat.

Grok's plugins panel

Then attach it to a task: type @ in the chat and pick sequel.

Using Grok chat rather than a bot? The steps do not carry over. On grok.com, open Plugins → New Connector → Custom, set the name to Sequel and the Server URL to https://api.sequel.sh/mcp, click Add Connector, and sign in.

Grok custom connector form

Step 3: Ask Grok Bot About Your Dodo Payments Data

Attach @sequel and ask:

What's total revenue this month, broken down by product and country?
Which subscriptions renew in the next 7 days, and what is their combined value?
How many payments failed last week, and which products were affected?

What You Can Do Now

  • Revenue answers without the dashboard: by product, by country, by period, in one message.
  • Renewal visibility: the bot runs unattended, so an upcoming-renewals list arrives weekly.
  • Failed payment follow-up: catch the drop in collected revenue before the month closes.
  • Refund monitoring: spot the product driving refunds early.
  • Cross-source joins: match Dodo customers against your database or product analytics to see who churned and why.

Troubleshooting

SymptomLikely fix
The bot searched the marketplace instead of adding the serverResend the message with the words "custom server" in it.
The server is not listed under Settings → Plugins → YoursThe registration did not complete. Resend the message and confirm the name and URL when the bot reads them back.
The bot answers without touching your dataYou did not attach it. Type @ in the chat and pick sequel before asking.
The key is rejectedA test key will not authenticate against live, or vice versa. Check the Environment field.
A write failsExpected. The key was created without write access and the connector is read-only.
Numbers look wrongConfirm you are querying the right environment. Test and live data are entirely separate.

Related Guides

Try Sequel

Build your company brain.

Sequel connects the systems your company runs on and learns how your team defines every metric, so any AI agent can answer from it. Free for up to 3 seats, no credit card required.

Get started free

Frequently asked questions

How do I add Sequel to Grok Bot?

Ask the bot. Send "add a custom MCP server called sequel at https://api.sequel.sh/mcp", confirm the name and URL it reads back, then click Authorize on the connect card and sign in to Sequel. Say "custom server" explicitly so the bot adds the endpoint instead of searching the plugin marketplace.

Do I need a Sequel API key for Grok Bot?

No. Sequel is a remote MCP server with OAuth. The bot posts a connect card, you authorize in the browser, and the token stays on the connector side. There is no key to paste into a chat.

Is this the same as Grok chat or Grok Build?

No, and the steps do not carry over. Grok chat on grok.com adds servers under Plugins, New Connector, Custom. Grok Build is the terminal coding agent and uses grok mcp add. Grok Bot is the bot builder, where you add servers by asking the bot.

How do I create a read-only Dodo Payments key?

In the Dodo dashboard, go to Developer, API Keys, Add API Key, name it, and leave "Enable write access" unchecked. The key can then fetch payments, subscriptions, customers, and products but cannot modify anything.

Can I query Dodo test mode?

Yes, as a separate connection with the Environment set to test. Dodo's test mode runs at test.dodopayments.com with its own keys and data, so a test key will not authenticate against live.

Can Grok Bot issue a refund through Dodo?

No. The Sequel connector ships read tools only, and a key created without write access enforces that at Dodo's end too.

What does Sequel name the connection?

Sequel verifies the key against the Dodo API and names the connection after your brand, so multiple Dodo businesses are easy to tell apart.

Does the bot see my Dodo API key?

No. The key is encrypted inside Sequel. The bot only holds an OAuth session scoped to your Sequel account.

Written by

Musthaq Ahamad
Musthaq Ahamad

Co-founder and CEO of Sequel. Previously built developer tools and data infrastructure. Passionate about making data accessible for everyone.