AI data lookups
Let the AI agent answer questions about a verified user's own account by calling endpoints on your server, such as their plan or an order's status.
AAgent44Updated 2 min read
On this page
The AI agent answers from your help center. With AI data lookups it can also answer questions about the user's own account, like "is my subscription active?" or "where's my order?", by calling an endpoint on your server while it writes its reply.
You describe what each endpoint returns and when to use it. The agent decides when to call one, agent44 makes the call with the user's ID, and the agent answers from what comes back.
Before you start: identity verification#
Lookups only run for users agent44 can vouch for. All of these must be true, or the agent isn't even told the lookups exist:
Your workspace enforces identity verification with a secret (Settings › Workspace › Identity verification).
The user's ID has come with a valid signature at least once.
The conversation is in your app or the web messenger. Lookups never run for email conversations or anonymous visitors.
The settings page tells you whether identity verification is enforced, with a link to set it up.
Add a lookup#
You need to be a workspace admin. You can have up to 5 lookups.
Go to Settings › Inbox › AI data lookups and click Add lookup.
Fill in:
Name: a short, function-like name such as
get_subscriptionorfind_order.Endpoint URL: an https address on your server.
When to use it: what the endpoint returns and for which questions, for example "The user's plan, renewal date and whether their last payment went through. Use for billing and subscription questions." The agent picks lookups from this description, so be specific.
Arguments (optional): things the agent should fill in from the conversation, such as an
order_number.
Save. Each lookup gets its own signing secret, so your server can check the call really came from agent44.
Your developers will need the request and response format, which is in the developer guide: AI data lookups.
Test it#
Each lookup has Test. Enter a User ID to test with, a user ID from your app, and agent44 calls your endpoint the way the agent would and shows you how it answered.
What the agent can and can't do#
It sends only the user's own ID, the one your app signed in with. The model can't choose or change it, so a lookup only ever returns data about the person the agent is talking to.
It can only read. Build lookups that look things up, never ones that change an account.
What your endpoint returns is treated as data about the user, never as instructions. Return only what the agent may tell the user.
If a lookup fails, times out or returns nothing useful, the agent usually hands the conversation to your team. The lookup's last error shows in Settings.
Your team can see which lookups an answer used, and whether each answered, in the conversation's AI agent panel. What the lookup returned isn't stored.
The built-in subscription lookup#
If you've connected RevenueCat or Superwall in Settings › Integrations, you don't need to build anything for subscription questions. On the same page, turn on Let the AI agent look up verified users' subscriptions. The agent can then check a verified user's plan, entitlements, renewal date and billing status from your connected account. It follows the same identity rules as your own lookups and is off by default.