[{"data":1,"prerenderedAt":9},["ShallowReactive",2],{"docs-howto-agent-en":3},{"title":4,"excerpt":5,"body":6,"seo_title":7,"seo_description":8},"How to create an AI agent","The steps to create an agent and hook it up to a scenario message, including completion conditions.","\u003Cp>How agents work in general is covered in the \"AI agents\" topic. Here's the sequence for creating one and hooking it up to a message.\u003C\u002Fp>\u003Cul>\u003Cli>Open the bot → \"Messages\" → \"AI agents\" → \"New agent\"\u003C\u002Fli>\u003Cli>Enter an \"Agent name\" — for your own navigation; the subscriber never sees it\u003C\u002Fli>\u003Cli>In the \"Agent role\" field, describe in plain language who it is and how it answers (for example: \"You're an online store consultant, answer questions about shipping and stock\")\u003C\u002Fli>\u003Cli>Click \"Save\"\u003C\u002Fli>\u003Cli>Open the scenario message you need → pick this agent in the \"Choose agent\" field\u003C\u002Fli>\u003Cli>In that same message, expand \"Completion conditions\" and specify when the agent should end the conversation\u003C\u002Fli>\u003C\u002Ful>","How to create an AI agent in TvoyBot: step by step","A step-by-step guide to creating an AI agent in TvoyBot and connecting it to a scenario message.",1783936925649]