# Ask your AI assistant which customers have stopped buying

Source: https://zigaflow.com/help/ask-ai-which-customers-have-stopped-buying

**The short answer:** Ask your AI assistant, connected through the Zigaflow MCP server: "Which customers we invoiced between January and June last year have no invoice this year?" Give exact periods and ask for a list you can check. If a period holds no invoices at all, a good answer says it cannot compare, not that nobody lapsed.

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, with your own details in place of the words in brackets:

```text
Which customers we invoiced between [first month] and [last month] last year have no invoice this year?
```

Give exact periods, with months and years, rather than "a while ago". And ask for the list of customers, not a summary, so you can look at each one.

In our demo account we asked: "Which customers we invoiced between January and June last year have no invoice this year?" Its customers, suppliers and figures are made up.

### 3. Read the answer

In our demo account the assistant answered: **this cannot be answered yet. The earliest invoice is dated 1 September 2026, so January to June 2025 has no invoices to compare with.**

That is the right answer. An empty comparison period is not the same as no lapsed customers, and an assistant that says "none" here has told you something untrue.

### 4. Check it in Zigaflow

Open Invoices, set the sort order to Ascending so the oldest comes first, and open the first invoice to see its date. If your invoices start after the earlier period, the comparison has no data.

![The invoices pipeline in Zigaflow sorted oldest first](https://cdn.sanity.io/images/sgnztw5h/production/792f8e7fad21d93156b3685dcb40a8525312a26c-1384x620.png?w=2400&fit=max&auto=format)

## What this lesson teaches

**Analyze**, level 3 of [AI skills with Zigaflow](https://zigaflow.com/help/ai-skills): Give exact periods, and ask for a list you can check, not a summary.

> **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: [Summary of CRM functionality](https://zigaflow.com/help/summary-of-crm-functionality) and [Finding out how many of an item have been sold](https://zigaflow.com/help/finding-out-how-many-of-an-item-have-been-sold).

## Frequently asked questions

### What if I moved to Zigaflow recently?

Your older invoices may be in your previous system or your accounts package. Ask the assistant only about periods Zigaflow holds.

### Does asking change anything in Zigaflow?

No. This question only reads your invoices.

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