Retries You Do Not Have to Build
A tool step can try again after a timeout or a server error, with a longer pause each time.
Order Operations
Every shop has a queue of orders that need your attention. AssistJet works through that queue every hour, writes to the customer, and puts the rest in front of you.
You run a report of orders that have not shipped, open each one, email the warehouse, and write to the customer. The list grows on the days you are out. By then the customer has already written in, and now you have a late order and an unhappy thread.
Each tool has one level for each seat, and your rules are enforced in code before the call. These tools are examples, and your own list comes from your app.
orders_stuckThe run lists the late orders.Readshipments_trackThe agent reads the carrier status.Readorders_noteThe agent records what it found.Autoorders_reshipYou approve each reship.Ask FirstOne run visits up to 1,000 orders. A longer list ends the run with an error that gives the count, so no order is skipped.
Write the job in plain words, and the agent drafts these steps as a card. If you build apps for other people, ship the same steps as a recipe, and every customer gets the job with no setup.
[
{
"id": "stuck-orders",
"name": "Stuck orders",
"trigger_kind": "schedule",
"trigger": {
"cron": "0 * * * *"
},
"steps": [
{
"kind": "tool",
"tool": "orders_stuck",
"arguments": {
"days": 2
},
"retry": {
"times": 3,
"minutes": 2
}
},
{
"kind": "each",
"over": "result.items",
"steps": [
{
"kind": "agent",
"instructions": "Read order {{item.id}} and its shipment. Write a short, honest update for the customer. Call orders_reship if the parcel is lost."
},
{
"kind": "send",
"to": "{{item.email}}",
"subject": "An update on your order",
"text": "{{agent}}"
}
]
}
]
}
] A tool step can try again after a timeout or a server error, with a longer pause each time.
Each run is a thread in your inbox, and each tool call, model, and cost is stored in your database.
You see the exact call before anything happens. You approve it once, and it runs once.