# Ask your AI assistant to set a discount and show the margin

Source: https://zigaflow.com/help/ask-ai-to-set-a-discount-and-show-the-margin

**The short answer:** Ask your AI assistant, connected through the Zigaflow MCP server: "Set the discount on the tote line of quotation Q1031 to 10 percent off list price, and tell me the price and margin before and after." The quotation is made up: use your own. State the number exactly, say what it is off, and ask for both figures to check.

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
Set the discount on the [item] line of quotation [quotation number] to [number] percent off list price, and tell me the price and margin before and after.
```

Say "set the discount to", not "add a discount". A discount in Zigaflow is off the list price, so setting a new one replaces the old one rather than adding to it. Asking for the price before and after shows you which happened.

In our demo account we asked: "Set the discount on the tote line of quotation Q1031 to 10 percent off list price, and tell me the price and margin before and after." Its customers, suppliers and figures are made up.

### 3. Read the answer

In our demo account the tote line had **13.85% off a list price of 1.95, a price of 1.68 and a margin of 43.45%**. Setting 10% replaced that discount, so **the price rose to 1.76 (shown as 9.74% once rounded), the net from 840 to 880, and the margin to 46.02%**.

A smaller discount than before raised the price. That is right for the instruction, and exactly why the question asks for the price before and after.

### 4. Check it in Zigaflow

Open the quotation and look at the line on its Items tab: the discount, sales price and margin should match what the assistant reported.

![The Items tab of quotation Q1031 in Zigaflow: list price 1.95, discount 9.74%, sales price 1.76](https://cdn.sanity.io/images/sgnztw5h/production/a015794b5ccac2bd2da472947152afaed448393c-1568x420.png?w=2400&fit=max&auto=format)

## What this lesson teaches

**Draft, don't send**, level 4 of [AI skills with Zigaflow](https://zigaflow.com/help/ai-skills): State numbers exactly, and check the arithmetic on the record.

> **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: [Showing and using mark-ups, margins and discounts on quotations](https://zigaflow.com/help/showing-and-using-mark-ups-margins-and-discounts-on-quotations) and [How quotation pricing is calculated](https://zigaflow.com/help/quotation-pricing-calculations-the-basics).

## Frequently asked questions

### Why did a 10% discount raise the price?

The line already had 13.85% off. Setting 10% replaced it, so the customer gets less off than before. Ask for the price before and after to catch this.

### Does the assistant change the quotation?

Yes, this question changes the discount on the line. Nothing is sent to the customer.

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