Add @pixie.app decorator to your main application function:
# my_chatbot.py from pydantic_ai import Agent import pixie # You can implement your application using any major AI development framework agent = Agent( name="Simple chatbot", instructions="You are a helpful assistant.", model="gpt-4o-mini", ) @pixie.app async def my_chatbot(): """Chatbot application example.""" yield "How can I help you today?" messages = [] while True: user_msg = yield pixie.InputRequired(str) response = await agent.run(user_msg, message_history=messages) messages = response.all_messages() yield response.output
The app will appear here automatically in a few seconds.