Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Conditional when and repeat
Run
from praisonai import Agent, AgentFlow, when checker = Agent(instructions='Reply with the single word URGENT if the note mentions outage, else OK.') escalator = Agent(instructions='Write a one-line incident alert.') flow = AgentFlow( steps=[ checker, when('URGENT', [escalator]), ] ) print(flow.start('Database outage on checkout API'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University