Get your API key

Lesson 5 of 5

Costs, testing and going live

Cap what the agent can spend, test with pinned data, publish, watch Executions, back up, and run a go-live checklist.

8 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson your Shree Sarees agent will run on its own key with a spending cap, be tested without touching real data, be published, and you will have a go-live checklist and a backup.

You need: the agent and the Daily stock check workflow from lessons 1 to 4, and an AllModelAPI account · Time: 8 minutes

  1. A chain makes one model call per run. An agent makes one call per round: read the message, call get_order, read the result, answer. That is two or three calls for one customer question. And every call carries the system message, the memory, every tool description and the tool results.

    So the cost of one answer is roughly number of rounds × size of each request. Each setting from this course shrinks one of the two:

    Match them

    Match each setting with what it keeps small

    Tap an item on the left, then its meaning on the right.

    Use a fast, low-cost model for everyday questions. Only try a bigger model, like deepseek-v4-pro, if tests show the small one keeps making mistakes, and compare the cost first.

    Why?

    Agents are cheap per message but they run all day. A setting that saves a little on every message saves a lot over a month of customer chats.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. A key with a spending cap, for this agent only
  2. Test without touching real data
  3. Publish, and know what goes live
  4. Watch the first week, and keep a backup
  5. Your go-live checklist
  6. Recap