---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Choose a persona for each chat

Route your agent's instructions by chat or channel without changing who can use its tools.

A sales WhatsApp chat and an internal finance group need different instructions, even when the same teammate writes in both. We added chat and channel routing for the agent you built, with a default for conversations that match neither.

Tell the coding agent you build with which channels and chats should use each persona, and which persona should be the default. A permitted teammate can assign a persona to a registered chat on the agent's Persona page; that choice takes priority over channel rules. Clearing it returns the chat to the rules. Existing role-based routing keeps working, and every tool call still uses the current speaker's permissions.
