AI Agent Management
Build an Action with Backstage, no setup forms
Have Backstage build, test and publish a QwryAI Action from your API docs in one conversation, with API keys kept out of the chat
Backstage can build an Action for you in conversation: the endpoint, headers, query parameters, body, and the details your agent asks customers for. You describe what the agent should be able to do and share your API docs, and Backstage drafts the Action, tests it against your real API, and publishes it once you approve. It's the quickest way to connect your agent to your own systems if you'd rather not fill in the Action editor yourself.
Backstage builds other Action types the same way, such as Collect leads, Show widget, Custom button, tickets, Slack, Cal.com, Calendly and Shopify Actions, and can go on to build a Procedure that uses the new Action.
Build an Action
- Describe the job
Tell Backstage what your agent should be able to do, and include a link to the API docs if there is one.
Describe the job and share the endpoint or docs. - Answer any open question
If your request leaves a real choice open, such as which endpoint to use or whether the Action should change data, Backstage asks you one question first.
- Approve the plan
Backstage reads the docs, drafts the Action, and shows one approval card for the whole job: building the Action, the endpoint test, and publishing it. Expand an item to see its details. Each item starts approved; reject any you don't want, then select Confirm (N approved).
- Enter the API key
If the endpoint needs a key, Backstage shows a masked field for it. See API keys stay out of the chat, below.
- Run the test
Backstage shows a test card with the exact request and a Run button. See Testing against your real endpoint, below.
- Publish and try it
Once the test passes, Backstage publishes the Action. An API Action only goes live after a passing test. Then try it in the Playground with a question that should trigger it.
The chat carries on by itself after you save the key or run the test, so you don't need to tell Backstage you're done.
Example: a weather lookup
I want my agent to tell people the current weather in their city. Here are the docs: https://open-meteo.com/en/docs
Backstage works out how the API expects its inputs. Here the forecast endpoint takes coordinates rather than city names, so Backstage builds the Action with latitude and longitude as inputs, and the endpoint needs no key. Compare it with an Action built by hand in Custom Action.
Example: an order status lookup
Customers keep asking where their order is. Our API is GET https://api.example.com/orders/{order_id} with an x-api-key header. Build an Action that looks up an order by its number, like 1042.
Because the endpoint needs a key, Backstage shows a masked field for the x-api-key value instead of asking you to paste it in the chat.
API keys stay out of the chat
When an endpoint needs a key, Backstage shows a card that says This Action needs a credential. It goes straight to QwryAI and is never shown to the assistant. Type the key into the masked field and select Save. The card confirms Credential saved. Backstage never sees the value, and it won't ask for a key in the chat.
The card also shows which Action the key is saved to and the host it will be sent to, so you can check both before you paste a live key. The key is stored encrypted on the Action. See Custom Action for how to give an Action a key scoped to only what it needs.
Testing against your real endpoint
Nothing is sent to your API until you select Run. The test card says Backstage wants to call this endpoint once to see what it returns. Nothing is sent until you click Run., and shows:
- the host the request goes to, and that the credentials stored on the Action go with it
- the method and address, the headers, the query parameters and the body, with the example values filled in
- that, if the call succeeds, the Action's selected response fields may be replaced with the fields it returns. A failed call changes nothing.
After the call, the card shows the status the endpoint answered with, such as Endpoint answered 200. Cancel skips the test.
Spotting missing Actions
When Backstage reviews your conversations, it can find requests customers keep making and suggest how to handle them: an Action when the request needs a lookup or a change in another system (order status, bookings, account details), a Procedure when it needs a step-by-step policy, or a Q&A answer when it only needs a fact. Ask "Customers keep asking for their order status. Is there an Action that would help?" to start.
Good to know
- An Action built by Backstage is a normal Action under Build › Actions. Change it there, or ask Backstage to change it.
- A new Action waits in your draft until it's published. Backstage publishes only that Action, and tells you about any other pending change the publish would include.
- An Action that writes data runs as soon as the agent calls it, unless you give it an approval policy. Ask Backstage to add one, or pick one in the Action editor. See Approvals.
- Building or editing an Action always needs your approval, even in auto mode, because Actions aren't one of the auto mode areas.
- On Slack, you can describe the Action and approve the plan in the thread; entering the key and running the test happen on the web.
Frequently asked questions
Can Backstage see my API key?
No. You type the key into a masked field, and it goes straight to the Action, encrypted. Backstage never asks for a key in chat.
Does Backstage call my API without asking?
No. Nothing is sent until you select Run on the test card, which first shows the exact request and the host, and warns you if the method can change data.
What happens if the test fails?
The Action isn't published. Backstage explains what the endpoint answered and proposes a fixed build for your approval.
Can I edit an Action Backstage built?
Yes. It's a normal Action under Build › Actions. You can change it there, or ask Backstage to change it, with your approval.
Can I build an Action from Slack?
Yes. Describe the Action and approve the plan in the Slack thread. Entering an API key and running the test happen in the chat on the web.