Superagento.
All tutorials
AI Agent · Lesson 09

AI Agent

Give an agent a task and the tools to solve it

Live example

Use the player’s settings for English captions and speed. If playback is unavailable, read the transcript below.

Watch on YouTube

Before you run it

AI Agent requires live model credentials. Tool access is limited to what you enable.

Read the related guide Open your canvasIncludes a recorded live example using demo data. Configuration close-ups and callouts explain the steps.
English narration generated with Kokoro Heart.

Try it step by step

  1. 1. AI Agent

    Ask an agent to calculate a sample total, then return a validated record.

    THE USE CASEAI Agent
  2. 2. Give a specific task

    Tell the agent to use its calculator and return a JSON object with one numeric field named total.

    01 / SYSTEM PROMPTUse calculator · Return JSON
  3. 3. Attach the resources

    Connect a Chat Model, Calculator, and Structured Output. Ask the agent to evaluate one hundred twenty-five times four, plus eighty.

    02 / MODEL · TOOLS · OUTPUT125 × 4 + 80
  4. 4. Inspect the real result

    The successful live run used one calculator call and returned a validated total of five hundred eighty.

    03 / LIVE RESULT{"total": 580}
Read the English transcript

Ask an agent to calculate a sample total, then return a validated record.

Tell the agent to use its calculator and return a JSON object with one numeric field named total.

Connect a Chat Model, Calculator, and Structured Output. Ask the agent to evaluate one hundred twenty-five times four, plus eighty.

The successful live run used one calculator call and returned a validated total of five hundred eighty.

Keep learningChat Model