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
| Source | When it fits |
|---|---|
| Google Sheets | Prices, stock or a menu are kept in a sheet. Change the sheet and the agent quotes the new value within a minute |
| Your own API | You 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
Settings → Apps → New app
Give it a name ("Warehouse", say) and write what the app does.
Enter the base address
Optional. With it set, methods only need the path: /products.
Add the authorisation header
Mark the key as Secret — it is encrypted and never returned to the browser.
Add the first method
A method is one request. The agent calls it itself, depending on what the customer asked.
Test it with a request
Don't attach it to the agent until you see a successful response.
Method settings
| Field | What goes in it |
|---|---|
| Name | Stock level |
| When should the agent call this? | "When the customer asks whether something is in stock or what it costs" |
| Method and Address | GET · /products/{id} |
| Parameters | Values the agent gets from the customer |
| Headers | Extra headers for this method only |
| Response fields | What 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
| Symptom | Cause |
|---|---|
| The agent never calls the method | The "when to call" description is vague, or the app is off |
| The request returns 401 | No authorisation header, or the key expired |
| The request returns 404 | The 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 much | Response fields wasn't set |
| Replies are slow | The 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.
Related guides
- Connecting Google SheetsKeep prices, stock or a schedule in Google Sheets and let the AI agent read from it: two ways to connect, and the limits.
- Knowledge baseThe agent relies only on what you give it. Adding knowledge, uploading a file, how it is used in pieces, and restoring an earlier version from History.
- AI agentWhat an AI agent is, how to create one and where it answers. The agent attaches to accounts; it is not a block in a flow. Each reply costs 2 credits.