Skip to main content
teams.createChat creates a chat with Microsoft 365 users and adds the connected user as an owner.

Example

automations/create-launch-chat.automation.ts

Inputs

A one-to-one chat requires exactly one other participant and can’t have a topic. A group chat requires at least two other participants. Use guest only for guest users in the same tenant.

Output

Returns the TeamsChat with chatId, chatType, and available topic, tenant, timestamps, and web URL. Graph may return an existing one-to-one chat between the same people.