ChatGPT with Microsoft Teams
Learn how to build a custom GPT in ChatGPT that researches topics and publishes posts in Microsoft Teams channels using Caddey — no coding required.
May 28, 2025
In this tutorial, you'll learn how to integrate Microsoft Teams with ChatGPT using Caddey. By setting up a custom GPT that connects to Caddey, you'll be able to list your Teams teams and channels, perform research on a topic, and publish your findings directly as a channel post – all without writing any code. Let's dive in!
Prerequisites
- ChatGPT Plus/Pro subscription: Access to custom GPT creation features in ChatGPT.
- Caddey account: A Caddey account to create an agent and connect Microsoft Teams.
- Microsoft account with Teams access: A personal or work Microsoft account that you use with Microsoft Teams.
Step 1: Create a Caddey Agent
- Log in to Caddey: Sign in to your Caddey account and go to the Agents section.
- Add a new agent: Click Add Agent, name it (e.g., "Teams Agent"), and optionally add a description like "Manages my Teams channels via Caddey."
- Save the agent: Click Save. Caddey will generate an API Key for your agent—copy it now as you won’t see it again.
The Caddey agent serves as the identity for your assistant. Its API key allows ChatGPT to securely execute Teams actions through Caddey.
Step 2: Connect Microsoft Teams in Caddey
- Open the Apps section: In Caddey’s dashboard, navigate to Apps → Marketplace.
- Find Microsoft Teams: Search for Microsoft Teams and click Connect.
- Configure key: A prompt will appear to choose a key. Choose the published OAuth key.
- Confirm connection: Once connected, Microsoft Teams will appear under Apps.
Step 3: Create a Teams Toolbox
- Go to Toolboxes: In Caddey, select Toolboxes.
- Create a new toolbox: Click Create Toolbox. Name it "Teams Collaboration Tools" with a description like "Tools for researching and posting in Teams."
- Add Teams tools: Click Add Tools and select the following actions:
- List teams the signed-in user is a member of
- List all channels in a team
- Send a message to a channel
- List messages in a channel (without replies)
- List chats the signed-in user is part of
- Send a message in a chat
Step 4: Assign the Toolbox to Your Agent
- Open your agent: Return to Agents, and select your "Teams Agent."
- Add the toolbox: In the agent’s Toolboxes tab, click Add Toolbox and choose Teams Collaboration Tools.
Step 5: Create a Custom GPT in ChatGPT
- Open ChatGPT: Log into your ChatGPT Plus/Pro account and choose Explore GPTs or Create GPT.
- Name your GPT: Enter a title, e.g., "Research & Share Assistant".
- Add a description: Something like "Performs research and shares findings to Microsoft Teams." Optionally add usage tips or personality details.
Step 6: Connect the GPT to Caddey
- Add an action: In the GPT builder, click Add Action to configure an external API call.
- Configure authentication:
- Method: API Key
- Key location: Custom Header
- Header name:
X-API-KEY
- Value: Paste your Caddey agent API key.
If you need to revoke access, regenerate or delete the agent’s API key in Caddey.
- Import OpenAPI schema: Choose Import OpenAPI from a URL and enter:
https://api.caddey.ai/v3/api-docs/tools
- Verify endpoints: Ensure ChatGPT recognizes:
- GET
/tools/query
(lists available tools) - POST
/tools/{toolId}/execute
(executes a tool)
- GET
- Save the action: Confirm and save—your custom GPT is now connected to Caddey.
Step 7: Test the Research & Share Assistant
Start a conversation with your new GPT:
- List your teams: Ask, "What Teams am I a member of?" It should retrieve and list your joined teams.
- Choose a team and channel: Prompt, "List channels in the 'Marketing' team." Pick a channel for publishing.
- Perform research: Ask the assistant, "Research the latest trends in AI-powered productivity and summarize key points." The GPT will use its internal knowledge and maybe web browsing (if enabled) to provide a summary.
- Publish to Teams: Finally, command, "Post the summary to the 'general' channel in the 'Marketing' team." The GPT will use the Send a message to a channel tool to publish your research.
You should see the research summary appear as a new post in the specified Teams channel.
Expand your assistant’s capabilities by adding more Teams actions or other apps in Caddey—just update your toolbox and reassign it to the agent.
Finalize and Deploy Your GPT
Once testing succeeds, click Save or Done in the GPT builder. Your Research & Share Assistant will now appear in your ChatGPT interface—ready to research topics and share insights to Microsoft Teams at your command.
Happy collaborating!