In Step 2, your app began streaming real AI answers. Now let's make the first-time experience effortless so anyone opening the page immediately knows what to ask.
What's new in Step 3: @aiui.welcome, @aiui.starters, @aiui.profiles, and @aiui.author_rename.
@aiui.welcome
@aiui.starters
@aiui.profiles
@aiui.author_rename
<Steps>
<Step title="Add a greeting and one-click starter prompts">
Add @aiui.welcome and @aiui.starters above @aiui.reply in app.py:
@aiui.reply
app.py
</Step>
<Step title="Offer switchable assistant profiles">
Let users switch between specialized modes using @aiui.profiles, and read message.agent_name inside @aiui.reply (notice we remove the : str annotation so message is a MessageContext):
message.agent_name
: str
message
MessageContext
<Step title="Run and test the new empty screen">
Click any starter card to send it instantly, then start a new chat and switch to the Writer or Analyst profile.
</Steps>
<CardGroup cols={2}>
<Card title="Step 4: Agent Reasoning, Steps & Tools" icon="git-branch" href="04-steps-and-tools.md">
Show live, collapsible tool calls and ask the user interactive questions mid-reply.
</Card>
<Card title="Step 2: Connect an AI Model" icon="arrow-left" href="02-connect-ai.md">
Review Step 2.
</CardGroup>