Use Microsoft Teams with SmythOS
Add your SmythOS agents into the Microsoft 365 ecosystem. Integrate chat, collaboration, and workflow automation directly into your agents with Microsoft Teams support.
INFO
Why Use Microsoft Teams With Your Agent?
Microsoft Teams is a hub for workplace communication. It combines messaging, meetings, file sharing, and integration with apps. Embedding it in your agents lets you:
- Centralize alerts and workflows inside the tools your team already uses
- Create conversational interfaces with live users
- Automate message handling and channel updates
With SmythOS, this becomes a no-code/low-code extension of your existing agent logic.
Prerequisites
Before you begin:
- You need a Microsoft 365 tenant and access to the Microsoft Entra Portal
- Your app must be registered in Azure with Microsoft Graph API enabled
- Your SmythOS agent should be deployed with Vault access configured
Step 1: Register an Azure App
- Visit the Microsoft Entra Portal
- Navigate to Azure Active Directory → App registrations → New registration
- Fill out:
- Name:
SmythOS Agent App
- Redirect URI:
https://app.smythos.com/oauth/oauth2/callback
- Account type: choose based on internal vs external use
- Name:
- Click Register
INFO
Step 2: Add Microsoft Graph API Permissions
- Go to your app → API Permissions
- Add permissions under Microsoft Graph:
Chat.Read
,Chat.ReadWrite
Channel.ReadBasic.All
,Team.ReadBasic.All
offline_access
- Click Grant admin consent to apply
Step 3: Create a Client Secret
- In the app, go to Certificates & secrets → New client secret
- Name it, set expiry, and save the generated value
Step 4: Store in SmythOS Vault
- Open SmythOS → Vault → API Keys → Add Key
- Add your credentials securely:
client_id
client_secret
tenant_id
Component Capabilities
Once your connection is live, use these components in your agent workflows:
Read and Retrieve
- List Chats: Get all chats a user is part of
- List Messages in Chat: Get all messages from a given chat
- Get Message in Chat: Retrieve a single message by ID
- Get Chat Info: Get metadata about a specific chat thread
Create and Interact
- Create Chat: Start a new chat with users
- Add Chat Member: Add a new user to an existing chat
- Send Message in Chat: Post text to a direct or group chat
Work with Channels
- Send Message in Channel: Push messages to public or private channels
- Send Reply in Channel: Reply to a specific message in a thread
What’s Next?
- Monitor agent-to-Teams traffic in Agent Logs
- Use Scheduled Routines to auto-post messages to teams
- Embed Chatbot agents that use Teams as a channel
- Use Data Spaces to enrich or personalize messages
Send a new message to a Microsoft Teams channel using the Send Message component with channel_id and content input.