Showing your customers' data on tickets
Show what your own product knows about each customer, such as their account, plan and orders, beside their tickets, for agents and AI drafts.
With production data on, each ticket shows what your own product knows about the customer, such as their account, plan and recent orders, under the customer card. Agents see it without leaving the ticket, and AI drafts can check it before answering. Administrators set it up under Settings → Production data, once the Production data capability is on under Settings → Capabilities.
There are two ways to connect your data. Use either, or both:
- Live lookup: Lagotto asks an endpoint of yours about the customer's email address, each time the ticket is opened.
- Pushed records: your systems send records to Lagotto's API, and Lagotto keeps them.
Your developers will find the request and answer formats, and how to check a signature, at /docs/data. The Documentation button on the settings page goes there too.
Setting up a live lookup
- Go to Settings → Production data.
- Under Live lookup, enter your Endpoint address and press Save. It has to be an https address on the public internet, and answer within 5 seconds.
- The first time you save an address, the page shows a signing secret. Copy it now: it is shown once. Your endpoint uses it to check that each request really came from Lagotto.
- Under Test, enter a customer's email address and press Test. You see the answer the way a ticket will show it: Found, No such customer or Unavailable, with the reason.
- Switch on Look customers up on tickets and press Save.
Until Look customers up on tickets is on, Lagotto asks your endpoint nothing except when you press Test. Answers are kept for one minute to spare your endpoint, then forgotten: Lagotto does not store them.
The page shows when your endpoint last answered, and the last problem it had.
If the secret is lost or may have leaked, press Rotate secret. The new one is shown once, and the old one stops working straight away, so update your endpoint at the same time.
Pushed records
Your systems send records to the Lagotto API, using an API key with write access. See API keys and webhooks. Each record has a type, such as account or order, your own ID for it, the customer email addresses it belongs to (up to 20), and its details. Sending a record again replaces it.
Pushed records stay until your systems delete them, or an administrator does. A workspace can hold up to 1,000,000.
On Settings → Production data, Pushed records shows how many you have and how much space they take, by type. Press Browse records to filter them by type or by a customer's exact email address. Open one to see everything that was sent, or press Delete to remove it. Deleting is recorded in the audit log, and your systems can push the record again.
What agents see on a ticket
The customer's records load under the customer card on the ticket page. Each record is a card showing its type and title, an Open link when it has one, and its details. Dates are shown in your workspace's time zone, and web addresses become links. A Live badge means the record was just asked for. Stored means it was pushed. Up to 25 pushed records show, the most recently updated first.
Everyone with a seat sees this, read-only seats included, and each view is logged. Send only what your support team should see: no passwords, card numbers or government ID numbers.
If production data is on but nothing is connected yet, administrators see a Set up production data link on tickets instead.
Whose records are shown
Only the email address the ticket is from is looked up. An address that is only on CC never shows anyone's records, and neither does a name. If a customer writes from an address your product does not know, the ticket says there are no records for it.
"No records" is not "unavailable"
The two answers mean different things, and Lagotto never mixes them up:
- No records for this address. Your endpoint answered and has no customer with that address, and nothing was pushed for it.
- Couldn't reach your data right now. This doesn't mean the customer has no records. The lookup failed: your endpoint returned an error, timed out or sent something unreadable. Press Try again. Administrators also see the reason. Pushed records still show while the lookup is down.
AI drafts are told the same: when the lookup fails, a draft must not tell the customer they have no account, and says in its note to you that their data could not be checked.
AI drafts and assistants
When AI drafts are on, a draft can look up the ticket's customer before answering a question about their account. It sees the same records an agent does, for that one customer only, and is told never to put internal identifiers or anyone else's data in a reply. Assistants your team connects over MCP can look up a ticket's customer the same way. See AI drafts and Connecting Claude and other AI assistants.
Pushed records are measured once a day and count as storage, which your contract may charge for. See How usage is counted.