Skip to content

Interface: TeamsChatProps

Props for TeamsChat.

optional agentId?: string

Mastra agent to answer with. Defaults to the server’s default agent.


optional className?: string

Extra classes merged onto the root container.


optional endpoint?: string

Conversation endpoint. Defaults to the Bot Framework messaging endpoint (/api/teams/messages) - the SAME route a real Teams channel calls, which is why this surface is a faithful preview rather than a parallel implementation.

That route only answers in the HTTP response when the server enables its development bypass (allowUnauthenticated); against a real bot registration it validates a Bot Service JWT and delivers replies through the Connector API, so this component cannot drive it. Point at /api/teams/activity for a server that keeps /messages locked down.


optional starters?: string[]

Prompts offered as one-tap starters while the transcript is empty.


optional userName?: string

Display name of the local user, shown on their messages.