# How to Automate Invoices with Grok and Grok Bot

> Connect PineBill to Grok or Grok Bot as a custom MCP connector, then create, send and chase invoices by asking in plain words. Setup takes about two minutes.

- Published: 2026-11-17
- Updated: 2026-11-17
- Category: Guides
- Tags: grok, mcp, ai-agents, invoice-automation, invoicing
- Author: Avery Collins, Editor, PineBill Guides
- Source: https://www.pinebill.app/blog/automate-invoices-with-grok

---

**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)](/blog/what-is-mcp-model-context-protocol-explained-for-small-business), 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](/auth/signup).
* **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`](https://www.pinebill.app/api/mcp)

## Option 1: Connect PineBill to Grok (grok.com)

<Steps>
  <Step>
    ### Open Connectors

    Go to [grok.com/connectors](https://grok.com/connectors), click **New Connector**, and choose **Custom**.
  </Step>

  <Step>
    ### Enter the PineBill URL

    Paste `https://www.pinebill.app/api/mcp` as the MCP server URL.
  </Step>

  <Step>
    ### 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.
  </Step>

  <Step>
    ### Ask in a chat

    Start a chat with the PineBill connector enabled and ask for what you need.
  </Step>
</Steps>

## 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.

<Steps>
  <Step>
    ### Open Connect apps

    In the Grok Bot desktop app, open **Connect apps** from the sidebar and choose **Add a custom connector** at the bottom.
  </Step>

  <Step>
    ### 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.
  </Step>

  <Step>
    ### Add and sign in

    Choose **Add plugin**. When the bot asks, click **Authorize**, sign in to PineBill, decide on **Allow edits**, and click **Allow**.
  </Step>

  <Step>
    ### Attach it to a task

    Type **@** in a chat, attach PineBill, and give the bot the job.
  </Step>
</Steps>

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**.

<Callout>
  Grok's menus change often. If a step doesn't match what you see, xAI's [connectors documentation](https://docs.x.ai/grok/connectors) and our [MCP docs](/docs/mcp) have the current steps.
</Callout>

## 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:

1. **Ask for a list before acting.** "Show me first" lets you catch a wrong rate or customer before anything is sent.
2. **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

1. **Grok writes text; Grok with PineBill does the billing.** The connector gives it real invoices, customers, PDFs and sending.
2. **Setup is one URL and a sign-in**, on grok.com or in Grok Bot. No API key or client ID.
3. **Grok Bot suits recurring work** like month-end billing and Monday overdue checks.
4. **Review before sending.** Ask for a list first and keep approvals on.

Using another assistant? See [how to create an invoice with ChatGPT](/blog/how-to-create-an-invoice-with-chatgpt), [with Claude](/blog/how-to-create-an-invoice-with-claude), or [invoice automation with OpenClaw](/blog/invoice-automation-with-openclaw).

## Sources

* [xAI Docs — Grok connectors](https://docs.x.ai/grok/connectors)
* [Model Context Protocol — Introduction](https://modelcontextprotocol.io/introduction)
* [PineBill Docs — MCP overview](https://www.pinebill.app/docs/mcp)
* [PineBill Docs — Available MCP tools](https://www.pinebill.app/docs/mcp/available-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.
