# Ask your AI assistant to automate Xero invoice exports

Source: https://zigaflow.com/help/ask-ai-to-automate-xero-invoice-exports

**The short answer:** Ask your AI assistant, connected through the Zigaflow MCP server: "Set up an automation that exports an invoice to Xero when it is approved. Leave it off." It cannot add the export action, so it should say so rather than leave a half-built rule. Build it in Settings > Automations and switch it on yourself.

In Zigaflow · Add-on: API Calls · Last checked 4 December 2026

## Before you start

- [Set up the Zigaflow MCP server](https://zigaflow.com/help/set-up-the-zigaflow-mcp-server)

## Steps

### 1. Connect your AI assistant

Your assistant needs the Zigaflow MCP server, working as the MCP user chosen in Settings. If it isn't connected yet, follow [Set up the Zigaflow MCP server](https://zigaflow.com/help/set-up-the-zigaflow-mcp-server).

### 2. Ask the question

Type this into your assistant:

```text
Set up an automation that exports an invoice to Xero when it is approved. Leave it off.
```

Say "leave it off", and ask the assistant to tell you if it cannot finish the rule. An automation with a name and no action sits in the list doing nothing.

### 3. Read the answer

In our demo account the assistant created nothing. **There were no invoice automations, and the server cannot add the Export action, so the assistant said it could not build the rule** and pointed to the Invoices tab of Settings > Automations.

That is the right answer. An automation with a name and no action would look finished in the list and never export anything.

### 4. Check it in Zigaflow

Open Settings > Automations and choose the Invoices tab. Add an automation that starts when an invoice is approved, give it the Export To Xero action, and leave it switched off until you have checked it.

![The invoice automations list in Zigaflow, empty](https://cdn.sanity.io/images/sgnztw5h/production/7a184bab9dbd039c755bae2563ec5561fa42b9f7-1260x720.png?w=2400&fit=max&auto=format)

## What this lesson teaches

**Ask once or automate?**, level 6 of [AI skills with Zigaflow](https://zigaflow.com/help/ai-skills): Build the rule with the assistant; switch it on yourself.

> **Tip:** The Zigaflow MCP server comes with the API calls add-on. It isn't on the Quotes plan.

## Do it by hand

The same work without an assistant: [Create an automation to export invoices to Xero](https://zigaflow.com/help/create-an-automation-to-export-invoices-to-xero) and [Xero & Zigaflow synchronization](https://zigaflow.com/help/xero-zigaflow-synchronization).

## Frequently asked questions

### Why can't the assistant build the Xero automation?

When we walked this, the server could not add an action to an invoice automation. Add the Export To Xero action in Zigaflow.

### Should the assistant switch the automation on?

No. Check the trigger and the action yourself, then switch it on.

### Can I use ChatGPT, Claude or Copilot for this?

Claude, yes, and any AI tool that connects to the Zigaflow MCP server with an API key: Microsoft Copilot Studio, n8n, Zapier, Claude Code, Cline, Cursor, Gemini CLI, GitHub Copilot, Goose, Junie, OpenAI Codex, Visual Studio Code and Zed, each with a setup guide. ChatGPT, the Gemini app and Microsoft 365 Copilot sign in to MCP servers with OAuth only, so they cannot connect yet.
