# Invoice Automation with OpenClaw: Bill Clients from WhatsApp and Telegram

> Connect PineBill to OpenClaw and let your personal AI agent create invoices, send reminders and report overdue payments from WhatsApp, Telegram or Slack.

- Published: 2026-11-19
- Updated: 2026-11-19
- Category: Guides
- Tags: openclaw, mcp, ai-agents, invoice-automation, self-hosted
- Author: Avery Collins, Editor, PineBill Guides
- Source: https://www.pinebill.app/blog/invoice-automation-with-openclaw

---

**OpenClaw becomes an invoicing assistant once you connect it to PineBill.** Add PineBill as a remote MCP server, sign in once, and you can text your agent "invoice Acme for 12 hours at $95, due in two weeks" from WhatsApp or Telegram. OpenClaw creates the invoice in PineBill, shows you the total, and sends it when you say so. Because OpenClaw runs all the time, it can also check for overdue invoices on a schedule and message you the list.

This guide covers the setup, a safe tool configuration, and the automations that are worth running.

## Why OpenClaw for Invoicing

[OpenClaw](https://docs.openclaw.ai) is an open-source personal agent you host yourself. One gateway connects it to your chat apps (WhatsApp, Telegram, Slack, Discord, Signal and others), and it can run scheduled jobs. That makes it a good fit for small-business admin:

* **Bill from wherever you are.** Finish a job on site, send a message, and the invoice exists before you're back in the van.
* **Recurring checks without a dashboard.** A scheduled job can report overdue invoices every Monday morning.
* **Your setup, your model.** You choose the model and the host, and PineBill keeps the records.

PineBill provides the invoicing side through the [Model Context Protocol (MCP)](/blog/what-is-mcp-model-context-protocol-explained-for-small-business): invoices, estimates, customers, products, expenses, tasks, timers, projects and reports.

## Step 1: Add PineBill as an MCP Server

PineBill is a remote MCP server using **Streamable HTTP** with **OAuth** sign-in. Add it with one command:

```bash
openclaw mcp set pinebill '{"url":"https://www.pinebill.app/api/mcp","transport":"streamable-http","auth":"oauth"}'
```

You don't need to set an OAuth scope. PineBill grants read access by default and asks for write access when a tool needs it.

## Step 2: Sign In

```bash
openclaw mcp login pinebill
```

OpenClaw prints a sign-in link. Open it, sign in to PineBill, and choose your access:

* **View-only:** leave **Allow edits** off. OpenClaw can answer questions but can't change anything.
* **Full access:** turn on **Allow edits** so it can create invoices, send emails and control timers.

If OpenClaw runs on a VPS or home server and the browser can't reach its callback, copy the code from the final URL and finish with:

```bash
openclaw mcp login pinebill --code <code>
```

Then check the connection:

```bash
openclaw mcp doctor pinebill --probe
```

If status later reports `authorization-required`, run the login command again.

## Step 3: Limit What the Agent Can Do

An always-on agent reachable from a chat app deserves tighter limits than a chat window you're watching. OpenClaw's `toolFilter` hides tools from the agent entirely. A sensible starting point is to remove every delete tool:

```json5
{
  mcp: {
    servers: {
      pinebill: {
        url: "https://www.pinebill.app/api/mcp",
        transport: "streamable-http",
        auth: "oauth",
        toolFilter: {
          exclude: ["delete_*"],
        },
      },
    },
  },
}
```

For a reporting-only agent, go further and exclude the senders too: `["delete_*", "send_*"]`. The full tool list is in the [available tools reference](/docs/mcp/available-tools).

<Callout type="warning">
  Sending email and deleting records can't be undone. Keep OpenClaw's approval flow on for any tool that changes data, and don't connect a write-enabled agent to a group chat other people can post in.
</Callout>

## Step 4: Bill from Chat

Once connected, message your agent the way you'd brief an assistant. Name the customer, the work, the quantity and rate, and when it's due.

**Create and send**

* "Invoice Acme Co. for 12 hours of design work at $95 an hour, due in 14 days."
* "Add a $150 hosting fee to that invoice."
* "Email it to them." (Approve when asked.)
* "Send me the PDF link."

**On the job**

* "Start a timer on the kitchen remodel task."
* "Stop my timer and add the hours to a new invoice for the Parkers at $85."
* "Log a $64 materials expense to the Parker project."

**Pipeline**

* "Who owes me money right now?"
* "Create an estimate for Bright Dental: 3 days of IT setup at $600 a day."
* "Turn estimate EST-0042 into an invoice."

## Scheduled Invoice Automations

OpenClaw can run jobs on a schedule and deliver the result to your chat. Ask your agent to set these up, and give each one only the PineBill tools it needs:

| Schedule         | Job                                                                        | Tools it needs |
| :--------------- | :------------------------------------------------------------------------- | :------------- |
| Monday 9:00      | Overdue invoices with amount and days late                                 | Read only      |
| 1st of the month | Draft invoices for last month's tracked time, then message me for approval | Read, create   |
| Friday 17:00     | Weekly revenue, expenses and outstanding total                             | Read only      |
| Daily 8:00       | Invoices due in the next 3 days                                            | Read only      |

Notice that none of these send email on their own. Let the agent prepare the work and message you, and approve the sending yourself. If you run many jobs, remember PineBill's limits: 120 requests a minute and 2,000 an hour per user across connected apps, and 30 invoice and estimate emails an hour.

## Limits Worth Knowing

* **One organization.** The connection works in the first PineBill organization you joined.
* **Your role applies.** The agent can only see and change what your PineBill role allows.
* **PDF links expire after an hour.** Ask for a fresh one when you need it, or create a share link in PineBill.
* **Payment details stay private.** Bank and card details of your payment methods are never sent to the agent.

To revoke access immediately, disconnect OpenClaw from **Organization → Connect MCPs** in PineBill.

## Key Takeaways

1. **Two commands connect OpenClaw to PineBill:** `openclaw mcp set` and `openclaw mcp login`. No API key.
2. **Bill from any chat channel** OpenClaw is connected to, including WhatsApp and Telegram.
3. **Filter tools for an always-on agent.** Exclude `delete_*`, and `send_*` for reporting-only agents.
4. **Schedule the checks, approve the sends.** Let OpenClaw prepare invoices and reports, and keep the final send with you.

Running a different agent? See [invoice automation with Hermes Agent](/blog/invoice-automation-with-hermes-agent) or [automating invoices with Grok](/blog/automate-invoices-with-grok).

## Sources

* [OpenClaw Docs — MCP transports and OAuth](https://docs.openclaw.ai/cli/mcp/transports)
* [OpenClaw Docs — MCP, skills and plugins configuration](https://docs.openclaw.ai/gateway/config-extensions)
* [PineBill Docs — Developer tools](https://www.pinebill.app/docs/mcp/developer-tools)
* [PineBill Docs — Available MCP tools](https://www.pinebill.app/docs/mcp/available-tools)

*Last updated: November 2026. OpenClaw changes quickly; check its docs for the current command options.*

## Frequently Asked Questions

### Can OpenClaw create invoices?

Yes, once it's connected to invoicing software. Add PineBill as a remote MCP server and OpenClaw can create invoices and estimates, look up customers, email invoices, get PDF links and report on what's overdue, from any chat channel you've connected to it.

### Do I need an API key to connect PineBill to OpenClaw?

No. PineBill uses OAuth. You add the server with auth set to oauth and run openclaw mcp login pinebill. OpenClaw prints a sign-in link, you approve it in the browser, and OpenClaw stores the tokens in its own state.

### OpenClaw runs on a server without a browser. How do I sign in?

Run openclaw mcp login pinebill, open the printed link on any device, and sign in. If the browser can't reach OpenClaw's callback address, copy the code from the final URL and pass it back with openclaw mcp login pinebill --code <code>.

### Can I stop OpenClaw from deleting invoices?

Yes. Use toolFilter in the server config to hide tools. Excluding delete_* removes every PineBill delete tool from the agent. You can also connect with view-only access by leaving Allow edits off when you sign in.

### Is this free?

OpenClaw is open source, and connecting it to PineBill works on every PineBill plan, including the free plan. It doesn't use PineBill AI credits because your OpenClaw model does the reasoning. You pay your model provider as usual.
