Agents Tutorial

This tutorial teaches PraisonAI agents one idea at a time. Build an agent, check the answer, then run the same ideas on your computer. AgentFlow is the next course. Under the numbered steps are only the pages that add something new: a role and a backstory, a second chat turn, four jobs, and a reply with a fixed shape. The other lists are practice for steps you have already done.

You can read every page without an account. Exercises and the quiz are optional. They do not lock the next lesson. A tick in the sidebar stays in this browser.

The reference stays in the documentation. Use this tutorial to learn, and the docs to look something up.

After the quiz, open Job paths if you want a role-based order across other University tracks.

A word the question never says

The question does not contain the word. Press Try it Yourself, then Run. The reply is one word: marigold.

Example

from praisonai import Agent

agent = Agent(instructions="The hidden word is marigold. When asked for the hidden word, reply with that single word and nothing else.")
print(agent.start("What is the hidden word?"))

Try it Yourself

Example explained

  • instructions — Where the word is kept. The question does not repeat it.
  • start — The question sent to the agent.

Next

Exercises · Quiz · Check exercises · Check quiz · Score exercises · Score quiz · Reply exercises · Reply quiz · Server exercises · Server quiz · Command exercises · Command quiz · Reference