Apps: live data

The agent reads stock, prices or an order status mid-conversation — through a Google Sheet or your own system's API.

Last updated: November 9, 2026

An app is a source of live data the agent reaches while it is talking to a customer: a Google Sheet, or your own system's API.

On its own the agent doesn't know your stock. To answer about stock, prices or an order status, an app has to be connected.

Which source to pick

SourceWhen it fits
Google SheetsPrices, stock or a menu are kept in a sheet. Change the sheet and the agent quotes the new value within a minute
Your own APIYou have a warehouse, CRM or order system holding the live data

The Google Sheets route is described in full on its own page: Google Sheets.

Connecting your own API

  1. Settings → Apps → New app

    Give it a name ("Warehouse", say) and write what the app does.

  2. Enter the base address

    Optional. With it set, methods only need the path: /products.

  3. Add the authorisation header

    Mark the key as Secret — it is encrypted and never returned to the browser.

  4. Add the first method

    A method is one request. The agent calls it itself, depending on what the customer asked.

  5. Test it with a request

    Don't attach it to the agent until you see a successful response.

Method settings

FieldWhat goes in it
NameStock level
When should the agent call this?"When the customer asks whether something is in stock or what it costs"
Method and AddressGET · /products/{id}
ParametersValues the agent gets from the customer
HeadersExtra headers for this method only
Response fieldsWhat the agent is handed: data.items.price

"When should it call this?" is the most important field. The agent reads it and decides, so write it in the language of a customer's question rather than in technical terms.

Each parameter takes a description — that's how the agent knows where to get the value. Inside the URL it is substituted as {id}.

Example — the Lola Store warehouse

Method: "Stock level" · GET /stock/{sku}

When to call: "When the customer asks about a specific product being available, or about a size"

Parameter: sku · Text · required · description: "the product code, for example LS-1042"

Response fields: size, qty, price

The result: asked "do you have LS-1042 in M?", the agent reads the warehouse and answers "M — 3 left, 240,000 so'm".

If the response holds fields the customer shouldn't see (cost price, other customers' records), always set Response fields. Left empty, the whole response is handed to the model.

Pausing and deleting an app

  • Let the agent use this app — switched off, the methods are kept but never called;
  • Delete app — removes the app and all its methods.

For testing, or isolating a problem, pausing is safer.

Troubleshooting

SymptomCause
The agent never calls the methodThe "when to call" description is vague, or the app is off
The request returns 401No authorisation header, or the key expired
The request returns 404The base address and the path were joined twice
The agent says "I don't know"The method works but came back with empty fields
The customer saw too muchResponse fields wasn't set
Replies are slowThe API itself is slow — the agent waits for it

Questions

How is an app different from the knowledge base?

The knowledge base is what you wrote down and it doesn't change. An app is live data read from outside at the moment of the question. If prices and stock change daily, they belong in an app.

When does the agent call a method?

It decides, from the "when should the agent call this?" description you wrote. So write that description in the language of a customer's question: "when the customer asks whether something is in stock or what it costs".

Is my API key safe?

Header values marked secret are stored encrypted and never returned to the browser — once saved, you can't see them either, only overwrite them.

Does the whole response go to the model?

Not if you set Response fields. Writing data.items.price means the agent is handed only that field. Left empty, the entire response goes.

Can I switch an app off without deleting it?

Yes. Turn off "let the agent use this app" and the methods are kept but never called. For testing or a temporary stop that's the safer route.

Was this page useful?

Related guides