# AI agents (MCP)

> Connect Claude, ChatGPT, Cursor or another AI assistant to Leal so it can design your card and set up rewards, posters and locations. What it can and can't do, and how to disconnect it.

You can connect an AI assistant such as Claude or ChatGPT to Leal and ask it to set up your loyalty programme in plain words. For example: "Design a loyalty card for my business. Here's our website." It reads your website, shows you a few card designs, and saves the one you pick, with a reward, a poster and a location.

This works through MCP (Model Context Protocol), a standard way for AI assistants to use other apps. You manage it on the [AI agents page](https://app.getleal.com/ai-agents) in your settings menu, under **AI agents (MCP)**. If you don't see **AI agents** in the menu, it isn't switched on for your account yet.

## What an assistant can do

- Read a business's website and suggest colours, a logo and a starting design
- Preview card designs as real wallet passes in the chat
- List your stores and cards, and show how a store is set up
- Create a store, and update its name and logo
- Create and update loyalty cards
- Add and update rewards
- Add store locations
- Create sign-up posters

## What it can't do

- Delete anything
- See your customers or their personal details
- Add stamps or redeem rewards
- Change your plan or billing

Your plan's limits still apply. If your plan only allows one card, the assistant is told so when it tries to make a second.

## Add Leal to ChatGPT

Leal is listed in ChatGPT's plugin directory, so you don't need to paste a server address to use it in ChatGPT.

1. Open **AI agents** in your settings menu and click **Add Leal to ChatGPT** next to ChatGPT, or open [Leal in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6ac02474d3488191852d70cb47dcf237) directly.
2. Add it to ChatGPT.
3. When ChatGPT asks, sign in to Leal and allow access.

Then try: "Design a loyalty card for my business. Here's our website: ..."

## Connect another assistant

1. Open **AI agents** in your settings menu.
2. Under **Connect an assistant**, click **Connect** next to your assistant: Claude (Claude.ai, Claude Desktop and Claude Code), ChatGPT (ChatGPT and the Codex CLI) or Cursor. For anything else, click **Connect another agent**.
3. Follow the steps shown for that assistant. For ChatGPT they link to Leal's listing in ChatGPT. For the others, they give you Leal's MCP server address to paste in.
4. The first time the assistant needs your account, it asks you to sign in to Leal and allow access.

The [Leal MCP page](https://www.getleal.com/mcp) has the full setup steps and example prompts.

> [!TIP]
> An assistant can preview designs before you've connected anything. You only sign in when it needs to save something.

## See and disconnect connected apps

**Connected apps** lists every assistant you've allowed, with:

- **Can read** or **Can read and make changes**, depending on the access you gave it
- when you connected it and when it was last used

Click **Disconnect** to remove an assistant's access. It has to sign in again to use Leal.

## Gotchas

- **Access follows your login.** An assistant can work on every store you can open. If you manage several stores, tell it which one you mean.
- **Changes are real.** When an assistant creates a card or poster, it's in your store straight away. Check its work in Leal, especially before printing a poster.
- **The connection lapses if unused.** If an assistant hasn't used Leal for 90 days, it has to sign in again.

## Best practices

- Start by giving it your website address. The designs are better when it can read your logo and colours.
- Ask it to show you designs before saving, then pick one.
- Disconnect assistants you no longer use.
