Post Messages to Microsoft Teams Channels with Copilot Studio | Day 111
Post dynamic messages to Microsoft Teams channels from Copilot Studio using an agent flow and the Microsoft Teams connector.
- Published
- Reading time
- 5 min read
Quick answer
Create an agent flow that accepts message details, uses the Microsoft Teams connector to post to an authorized channel, and returns the result to the agent.

Week 16 · Day 111 of 365 in 365 Days of Copilot Studio — view the full series
Before you start
Is this guide for you?
- Best entry point
- 365 Days of Copilot Studio
- Time investment
- 5 min read
- Prerequisite knowledge
- A Copilot Studio agent, an agent flow and a Microsoft Teams connection authorized to post in the chosen channel.
What you’ll learn
- An agent flow can post a Teams channel update using the Teams connector.
- Use dynamic inputs such as a ticket ID and priority to personalize the message.
- Choose and verify the team, channel and connection permissions.
- Test the flow and confirm the message appears before publishing.
Before you start
- Prerequisite knowledge
- A Copilot Studio agent, an agent flow and a Microsoft Teams connection authorized to post in the chosen channel.
On this page (9 sections)
Day 111 of 365 Days of Copilot Studio shows how an agent can send a team update to a Microsoft Teams channel. Copilot Studio gathers the details, an agent flow processes them, and the Microsoft Teams connector posts the message.
From an agent request to a Teams update
Routine updates can be easy to miss when people have to copy information between systems. An agent flow can help share a support ticket update, incident alert, approval notification or project status in a relevant channel.
For example, the agent receives a support request and passes the ticket ID TS-1024 and priority High to a flow. The flow posts a message containing those values to the selected support channel. Make sure the ticket actually exists before announcing it as received.
What happens behind the scenes?
- The user asks: “Post an update for ticket TS-1024. Its priority is high.”
- The agent collects the details: It identifies the ticket ID and priority and asks for anything missing.
- The flow sends the update: The agent passes those values to the flow, which posts to the configured Teams channel.
- The agent reports the result: Once the flow responds, the agent tells the user whether the post succeeded.
Think of the agent as the person taking the request, the flow as the set of instructions, and the Teams connector as the connection that delivers the message. Posting a message is a separate action from creating the support ticket.
Before you begin
- Have an agent available in Copilot Studio and access to create an agent flow in the appropriate environment.
- Choose a Teams team and channel where the update should appear. A test channel is helpful while you build.
- Connect to Microsoft Teams with an account that is allowed to post to the selected channel, and check that the Workflows app and relevant policies allow the action.
- Decide which details are suitable to share with the channel. For this example, use a ticket ID and priority rather than a full customer record.
Create the agent flow
- Open your agent in Copilot Studio and create an agent flow with the When an agent calls the flow trigger. Add inputs for the details you want in the message, such as ticket ID and priority.
- Add the Microsoft Teams action Post message in a chat or channel and configure an authorized Teams connection.
- For the channel example, choose Flow bot under Post as and Channel under Post in. Select the intended team and channel.
- Write the message and insert the trigger inputs as dynamic content. Keep the information appropriate for everyone who can read the channel.
- Add Respond to the agent and return a clear success or failure result. Save and publish the flow, then add it to the agent as a tool and map its inputs.
See Microsoft's guides to sending Teams messages with Power Automate and calling agent flows for configuration details and current requirements.
Build the message with dynamic content
Dynamic content is a value the flow receives or produces while it runs. Instead of typing the same ticket number into every message, insert the Ticket ID input. Do the same for Priority.
Your message template can look like this:
New support request received!
Ticket: [Ticket ID]
Priority: [Priority]
In the flow designer, insert the corresponding dynamic content tokens where the placeholders appear. If the inputs are TS-1024 and High, the posted message displays those values. The words in brackets above are examples, not tokens you should type literally.
Connect the flow to your agent
Add the published flow as an agent tool and give it a clear description, such as “Post a support ticket update to the support team channel.” Map the ticket ID and priority to the flow inputs. If the user leaves out the priority, the agent should ask for it instead of guessing.
Before posting, the agent might say: “I’ll post ticket TS-1024 with high priority to the support channel. Is that correct?” After confirmation, it calls the flow. A successful reply can say, “The update was posted to the support channel.” If the connector fails, the agent should explain that the update could not be confirmed and suggest checking the flow run.
Test before publishing
- Run the agent with a sample request and check that it passes the expected ticket ID and priority.
- Review the flow run, then open the selected Teams channel and verify the message and its dynamic values.
- Test missing inputs, an inaccessible channel and a failed connection. The agent should report failure or uncertainty instead of claiming the post succeeded.
- Publish the agent after the flow and conversation have been tested.
Troubleshooting common problems
- The team or channel is missing: Check that the Teams connection can access the intended team and channel. Confirm the destination and applicable Teams policies.
- The message contains empty values: Check that the agent supplies each required input and that the correct dynamic content tokens are inserted in the message.
- The flow runs but no message appears where expected: Review the posting action in the run history and check the team and channel selected in that action.
- The agent says it posted, but the action failed: Review the flow's success and failure paths. Return a success response only after the Teams action succeeds.
- The same update appears twice: Check for repeated requests or retries. If the result of a previous attempt is uncertain, inspect the channel and run history before sending again.
Keep notifications useful and secure
- Use a connection with the appropriate access and confirm that the requester is authorized to send the update.
- Choose the destination carefully and avoid exposing sensitive ticket or customer information to a broader audience.
- For messages composed from user input, confirm the destination and content where appropriate before posting.
- Plan for failures and duplicate messages: an uncertain result should be checked before retrying.
With the right permissions and a tested flow, the same pattern can support IT incident alerts, support ticket updates, approval notifications and project status updates.
Tagged
AI Agents · Automation · Governance
Frequently asked questions
Can a Copilot Studio agent post to a Teams channel?
Yes. The agent can call an agent flow that uses the Microsoft Teams Post message in a chat or channel action, subject to the connection and channel permissions.
Can the Teams message include information from the agent?
Yes. Define flow inputs and insert them as dynamic content in the message, such as a ticket ID and priority.
How can I confirm the message was posted?
Check the flow run result and verify the message in the intended Teams channel. Return success to the agent only after the posting action succeeds.
Have a Microsoft 365 topic idea?
Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.
Keep learning Microsoft 365
Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.
Continue learning
Related tutorials
Related questions
Related comparisons
Next action