🪞 <your text> in any Matrix room you invite it to.
Step 1 — Get a bot token
You need an active AgentFlow user session. Sign in at agentflow.website, open DevTools → Application → Cookies → copy theaf_session value.
bot_token. There is no way to retrieve it later — only regenerate (lose history) or delete.
Step 2 — Invite the bot to a room
Open chat.agentflow.website. In any room → settings → People → Invite → paste@bot_my_echo:agentflow.website (the value from matrix_user_id above).
The bot won’t reply yet — it’s just sitting in the room. Webhook setup is next.
Step 3 — Run the echo bot locally
Step 4 — Register the webhook
Step 5 — Talk to your bot
In Element, type a message in the room you invited the bot to:npm start will log each POST as the platform delivers it.
Next steps
- Replace
echo()insrc/index.tswith your own logic - Read the API reference for
sendPhoto,editMessage, widgets, games - Build a game — see game-coinflip walk-through
- Use the TypeScript SDK instead of raw curl