Skip to content

Integration · Marketing

Connect Claude & ChatGPT to Leal

Ask your AI how many stamps a customer has, or tell it to add stamps and redeem a reward in Leal. It can search and create customers, enroll them on a loyalty card, and create or change loyalty cards and rewards. It can also list your store locations and sign-up posters.

Connect Leal free

Free plan, no credit card. Takes about a minute.

Try asking

  • “How many stamps does Anna Berg have on her coffee card?”

    The AI searches for the customer, lists the loyalty cards she holds and reads the current stamp count.

  • “Add 2 stamps to customer 8812's lunch card.”

    It adds the stamps to that customer's card. The customer may get a notification unless you ask it to skip them.

  • “Anna wants her free coffee. Redeem it.”

    It finds the reward on her card and redeems it, using up the stamps the reward costs.

What your AI can do

Customers and stamps

Search, create and update customers, enroll them on a card, add stamps and read the stamp count on each card they hold.

Loyalty cards and rewards

Create and update loyalty cards and rewards, and redeem a reward on a customer's card.

Store and locations

Read your store details, list and create locations, and list sign-up posters by card or status.

  • “Sign up Jonas Holm, [email protected], on our coffee card and send him the card link.”

    It searches first to avoid a duplicate, then creates the customer, enrolls him on the card and sends the card link.

  • “Create a reward on the lunch card: free dessert after 8 stamps.”

    It creates the reward on that card with a name, description and the number of stamps required.

  • “Which rewards are active on each of our loyalty cards?”

    It lists your loyalty cards and the active rewards on each, with the stamps each reward needs.

20 tools for Leal

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • add_stampsChanges dataAdd a number of `stamps` to a customer's loyalty card (`customer_id`, `customer_card_id`). The customer may be notified unless `skip_notifications` is set.
  • create_customerChanges dataCreate a customer with first/last name, email, phone and birthday, optionally enrolling them on a loyalty card (`card_id`). With `send_card_links` the customer is sent a link to their card. Search first to avoid duplicates.
  • create_locationChanges dataCreate a store location with a name and address.
  • create_loyalty_cardChanges dataCreate a loyalty card with a name, number of stamps required, initial stamps, colors and header text.
  • create_rewardChanges dataCreate a reward on a loyalty card with a name, description and number of stamps required.
  • get_customerGet one customer by `customer_id`, with name, email, phone and birthday.
  • get_customer_cardGet one of a customer's loyalty cards by `customer_id` and `customer_card_id`, including current stamps.
  • get_loyalty_cardGet one loyalty card by `card_id`, including design, stamps required and expiry.
  • get_rewardGet one reward by `reward_id`, with its name, description and stamps required.
  • get_storeGet the connected Leal store's details, such as its name.
  • list_customer_cardsList the loyalty cards a customer holds, with their stamp counts. Needs `customer_id`.
  • list_locationsList the store's locations (name and address).
  • list_loyalty_cardsList the store's loyalty cards. Use to find a card ID before adding customers, stamps or rewards.
  • list_postersList the store's sign-up posters, optionally filtered by `card_id` or active status.
  • list_rewardsList the store's rewards, optionally filtered by `card_id` or active status.
  • redeem_rewardChanges dataRedeem a reward (`reward_id`) on a customer's loyalty card (`customer_id`, `customer_card_id`), using up the stamps it costs.
  • search_customersSearch the store's customers by name, email or phone (`search`), source or external ID. Use to find a customer before creating one.
  • update_customerChanges dataUpdate a customer's name, email, phone, birthday or metadata by `customer_id`. Only the fields you pass change.
  • update_loyalty_cardChanges dataUpdate a loyalty card's name, stamps required, colors or other settings by `card_id`. Only the fields you pass change.
  • update_rewardChanges dataUpdate a reward's name, description, stamps required or active status by `reward_id`. Only the fields you pass change.

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Leal from the app list.

  2. 2

    Paste your key

    Paste a Leal API token and your account (store) ID. Sign in to Leal, open API tokens in your account settings (app.getleal.com/api_tokens), create a token and copy it. The token has the same access as the user who created it. Your account (store) ID is returned by Leal's list accounts API call.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. Switch it on from the + menu in a chat.

Questions

What can the AI do in Leal?

The AI can read your store, locations, loyalty cards, rewards, sign-up posters, customers and the cards each customer holds. It can create customers, loyalty cards, rewards and locations, update customers, cards and rewards, add stamps and redeem rewards.

Does the AI see my Leal API token?

No. Your Leal API token is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start read-only. Adding stamps and redeeming rewards change what a customer has on their card, and both can require your approval before they run. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Leal account.

Will customers be notified when the AI adds stamps?

They may be. Leal can notify a customer when stamps are added, unless notifications are skipped for that call. Ask the AI to skip notifications if you do not want the customer to hear about it. When creating a customer, the AI can also send them a link to their card.

Let your AI work in Leal today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Leal free

PipMCP is not affiliated with Leal. Product names are trademarks of their owners.