Skip to main content
Support assistant tutorial Complete the installation, then save the code below as support.ts. This first checkpoint gives the model instructions without tools or order data.

Complete checkpoint

support.ts

Run it

Verify the result

You should see a request for an order ID. Exact wording varies. The model has no order database, so it cannot verify a shipment yet. result.status tells you whether the run completed; text alone is not a success check. finally closes the resources owned by this Agent even if a request fails. Try changing the input: ask for the delivery date of ORD-1042. Notice why instructions alone cannot establish the delivery date.

Give it an order lookup

Continue to the next chapter.