How to Automate Invoices with Grok and Grok Bot
Contents16 sections
- What Grok Can Do with PineBill Connected
- Before You Start
- Option 1: Connect PineBill to Grok (grok.com)
- Open Connectors
- Enter the PineBill URL
- Sign in to PineBill
- Ask in a chat
- Option 2: Connect PineBill to Grok Bot
- Open Connect apps
- Fill in the connector
- Add and sign in
- Attach it to a task
- Invoice Automations to Set Up
- Limits Worth Knowing
- Key Takeaways
- Sources
To automate invoices with Grok, add PineBill as a custom MCP connector, sign in once, and ask Grok to do the billing work in plain words. "Invoice Acme for 10 hours of consulting at $120, due in 14 days" creates a real invoice in your PineBill account. "Email it to them" sends it after you confirm. With Grok Bot, the same connection can run on a routine, so the agent can check who's overdue and draft follow-ups without you opening the dashboard.
This guide covers both products: Grok on grok.com and Grok Bot, xAI's personal agent.
What Grok Can Do with PineBill Connected
Without a connection, Grok can only write invoice-shaped text. With PineBill connected through the Model Context Protocol (MCP), it works with your real records:
| Task | Example request |
|---|---|
| Create invoices | "Invoice Northwind for 3 site visits at $250 each, due in 30 days." |
| Send them | "Email that invoice to the customer." (Grok asks you first.) |
| Get the PDF | "Give me the PDF of INV-0112." |
| Chase payment | "Which invoices are overdue, and who owes the most?" |
| Estimates | "Create an estimate for Lumen Studio: logo design, $1,800." |
| Customers and products | "Add Bright Dental as a customer, billing@brightdental.com." |
| Time and expenses | "Stop my timer and invoice the hours to Acme at $95 an hour." |
| Reports | "How much did I invoice this quarter compared with last?" |
PineBill keeps the numbering, totals, taxes, templates and payment status. Grok decides which tools to call based on what you ask.
Before You Start
- A PineBill account. Connected apps work on every plan, including free. The sign-in screen can't create an account, so sign up first.
- Grok or Grok Bot. Custom connectors are available to Grok users on grok.com. On Grok Business and Enterprise, a team admin has to allow the connector before members can add it.
- The server URL:
https://www.pinebill.app/api/mcp
Option 1: Connect PineBill to Grok (grok.com)
Open Connectors
Go to grok.com/connectors, click New Connector, and choose Custom.
Enter the PineBill URL
Paste https://www.pinebill.app/api/mcp as the MCP server URL.
Sign in to PineBill
Grok opens the PineBill sign-in page. Sign in, turn on Allow edits if you want Grok to create and change records, and click Allow. Leave it off for view-only answers.
Ask in a chat
Start a chat with the PineBill connector enabled and ask for what you need.
Option 2: Connect PineBill to Grok Bot
Grok Bot runs on a cloud computer and keeps working when you're away, which suits recurring billing chores.
Open Connect apps
In the Grok Bot desktop app, open Connect apps from the sidebar and choose Add a custom connector at the bottom.
Fill in the connector
Name it PineBill, pick Remote HTTPS as the type, and paste https://www.pinebill.app/api/mcp as the Server URL. Leave HTTP headers and OAuth Client ID empty. PineBill registers Grok automatically.
Add and sign in
Choose Add plugin. When the bot asks, click Authorize, sign in to PineBill, decide on Allow edits, and click Allow.
Attach it to a task
Type @ in a chat, attach PineBill, and give the bot the job.
You can also ask the bot directly: "Add a custom MCP server called PineBill at https://www.pinebill.app/api/mcp." Say "custom server" so it doesn't look in the plugin catalog instead, and check the URL on the confirmation card before you click Add it.
Invoice Automations to Set Up
Here are the requests that save the most time. In Grok, you run them when you need them. In Grok Bot, you can turn the recurring ones into routines.
End-of-month billing
Create invoices for every customer with tracked time this month that hasn't been invoiced yet, at their usual rates, due in 14 days. Show me the list before sending anything.
Monday overdue check
List every overdue invoice with the customer, amount and days late. Draft a short, polite reminder for anything more than 7 days late.
Estimate to invoice
Turn estimate EST-0042 into an invoice and email it to the customer.
Recurring client
Duplicate last month's invoice for Northwind with this month's dates and email it.
Cash flow snapshot
What's my outstanding total, what came in this month, and which customer is slowest to pay?
Two habits make automated invoicing safe:
- Ask for a list before acting. "Show me first" lets you catch a wrong rate or customer before anything is sent.
- Keep approvals on for sending and deleting. An email can't be unsent and a deleted invoice can't be restored.
Limits Worth Knowing
- One organization. Grok works in the first PineBill organization you joined.
- Your role applies. Grok can only see and change what your PineBill role allows. Guests are view-only.
- Rate limits. 120 requests a minute and 2,000 an hour per PineBill user across all connected apps, plus 30 invoice and estimate emails an hour. A refused email isn't sent.
- PDF links expire after an hour. Email the invoice or create a share link in PineBill for a link that keeps working.
- Payment details stay private. Bank and card details of your payment methods are never sent to Grok.
You can disconnect Grok at any time from Organization → Connect MCPs in PineBill.
Key Takeaways
- Grok writes text; Grok with PineBill does the billing. The connector gives it real invoices, customers, PDFs and sending.
- Setup is one URL and a sign-in, on grok.com or in Grok Bot. No API key or client ID.
- Grok Bot suits recurring work like month-end billing and Monday overdue checks.
- Review before sending. Ask for a list first and keep approvals on.
Using another assistant? See how to create an invoice with ChatGPT, with Claude, or invoice automation with OpenClaw.
Sources
- xAI Docs — Grok connectors
- Model Context Protocol — Introduction
- PineBill Docs — MCP overview
- PineBill Docs — Available MCP tools
Last updated: November 2026. Grok's menus change often; the PineBill docs carry the current setup steps.
Frequently Asked Questions
Can Grok create and send invoices?
Not by itself. Plain Grok can write invoice text, but it has no customer records, numbering, PDFs or sending. Once you add PineBill as a custom connector, Grok can create real invoices in your PineBill account, email them to customers after you confirm, and report on what's unpaid.
What's the difference between Grok and Grok Bot for invoicing?
Grok on grok.com is a chat: you ask, it answers and acts while you're there. Grok Bot is xAI's personal agent that keeps context, runs routines and works from the desktop app, mobile app and Slack. Both connect to PineBill the same way, through a custom MCP connector with OAuth sign-in. Grok Bot is the better fit for hands-off work like weekly overdue checks.
Do I need an API key or OAuth client ID to connect PineBill to Grok?
No. PineBill is a remote MCP server with OAuth sign-in. You paste the server URL, sign in to PineBill in the browser, and choose whether to allow edits. Grok Bot's custom connector form has an optional OAuth Client ID field; leave it empty for PineBill.
Does using Grok with PineBill cost PineBill AI credits?
No. Grok does the reasoning, so PineBill AI credits aren't used. Connected apps work on every PineBill plan, including the free plan, and your plan's normal limits still apply.
Can Grok send an invoice without asking me?
Sending email and deleting records can't be undone, so keep Grok's approvals on for those actions. Connected apps are also limited to 30 invoice and estimate emails an hour per PineBill user, so a mistake can't turn into a flood of emails.
