An agent in Microsoft Teams with Copilot Studio
Give your colleagues an agent in Teams and Microsoft 365 Copilot that makes marketing material on request: "A poster for the summer party on 12 July, A3" comes back as a design in your corporate design, made from your workspace's templates.
The agent is built in Microsoft Copilot Studio and uses heycreo's MCP server. Each person signs in to heycreo with their own account the first time they use it, so the agent can do exactly what that person may do in heycreo.
You need:
- A Copilot Studio license that can publish agents (a trial cannot).
- An agent in Copilot Studio with generative orchestration switched on. MCP tools only work with it.
- A heycreo account for everyone who will use the agent.
This recipe follows the agent editor most tenants use today. In the newer Copilot experience, which is in preview, MCP servers are added under Build → Tools → Add → Model Context Protocol (MCP) with the same values.
1. Add heycreo as an MCP server
-
Open your agent and go to Tools. Select Add a tool, then New tool.
-
Under Create new, select Model Context Protocol.
-
Fill in:
Field Value Server name heycreo Server description Creates marketing material in our corporate design from our heycreo templates: social media posts, posters, flyers, banners. Use it whenever someone asks for a design, a post or a print file. Server URL https://app.heycreo.io/api/mcpThe agent decides from the description when to use heycreo, so describe what people will ask for.
-
For authentication choose OAuth 2.0, type Dynamic discovery, and select Create. Copilot Studio finds heycreo's sign-in by itself and registers with it; there is nothing to copy.
-
In the Add tool dialog, select Create a new connection, then Add to agent.
2. Choose the tools
heycreo's MCP server offers many tools. On the heycreo server's page, under Tools, switch Allow all off and switch on only what this agent needs:
| Tool | For |
|---|---|
get-templates | Finding a template that fits the request |
create-template-design | Creating the design with the requested texts |
set-template-design-controls | Changing texts or images afterwards |
get-template-design | Reading back what the design contains |
studio-export | Rendering the file |
get-exports | Fetching a file that took longer to render |
Select Save. Fewer tools make the agent's choices better; Microsoft recommends no more than 25 to 30 per agent for the best results.
3. Tell the agent how to answer
In the agent's Instructions, add for example:
When someone asks for marketing material, use heycreo. Always start from one of
our templates and never invent colors or fonts. Ask for the format if it is
unclear (post, story, poster, flyer). When the file is ready, answer with a link
to it and a one-line summary of what you made.
Teams does not show images inside an agent's answer, so the link is how people open the result.
4. Test and publish
- Try it in the test pane: "Make an Instagram post for our summer sale, 20 % off everything." The first time, Copilot Studio asks you to sign in to heycreo. On heycreo's consent screen, choose the workspace the agent should work in.
- Select Publish.
- Under Channels, choose Microsoft 365 and Microsoft Teams and select Add channel. Keep Make agent available in Microsoft Copilot on if people should find it in Microsoft 365 Copilot too.
- Select See agent in Teams to open it, or share it with colleagues or submit it to your organization's catalog under Availability options. Submitting to the catalog needs your Teams admin's approval.
Good to know
- Each person works as themselves. The OAuth connection is per user: someone without access to a template or a workspace in heycreo does not get it through the agent, and the designs they create appear under their name.
- New heycreo tools show up late. Copilot Studio refreshes a server's tool list on its own schedule; a tool heycreo adds can take up to a day to appear.
See also
- MCP server and its tool reference
- Microsoft: Add an existing MCP server to an agent