Learn how to extend your Copilot Studio agents by connecting to external APIs and triggering event-driven workflows. With HTTP Request nodes, you can fetch, submit, and manipulate data from external systems. Using Event and Activity nodes, your agent can perform asynchronous actions, communicate with client-side tools, and handle system-level events without direct user messages.
This guide covers how to configure HTTP requests with headers, body content, and error handling, as well as how to send events, invoke client tasks, and orchestrate activities to create powerful, context-aware, and interactive agents in Copilot Studio.
The HTTP Request node lets your agent:
In short, it allows your bot to talk to any REST API.
Before using it, make sure you can create and edit topics in Copilot Studio.
Headers are optional—but often required.
Use headers when API requires authentication or specific formats.
By default, no body is sent (common for GET).
You can add content when needed.
Used in POST, PUT, PATCH requests. You can provide JSON and also use Power Fx for dynamic values.
Send plain text or custom formats using Power Fx formulas.
After the API responds, you need to store and use the data.
Beyond messages, Copilot Studio allows your agent to communicate using events and activities. This unlocks advanced scenarios like triggering workflows, interacting with client-side tools, and handling system-level communication.
The activity protocol is a core concept in Copilot Studio that enables seamless communication between users and agents. It defines a standardized structure for all interactions.
There are different activity types, but the most important ones are:
These are the most common interactions where users ask questions and agents respond. They carry text, media, or adaptive cards and are used for direct conversations.
These represent system-triggered actions or updates. They work asynchronously and do not require direct user interaction.
The Event activity node allows your agent to send event-based signals. These events are intercepted by the channel, which decides how to use them.
The value can be:
The value is serialized as JSON and sent with the activity.
In orchestration, tools are not just server APIs. You can also execute tools on the client using event activities.
Agent request:
{
"type": "event",
"name": "getSlideContent",
"value": { "page": 5 }
}
Client response:
{
"type": "event",
"name": "getSlideContent",
"value": { "content": "QA slide. Next steps" }
}
There are two ways to register client tools:
schemaName: GetSlideContent
kind: InvokeClientTaskAction
inputs: page (Number, required)
outputs: content (String)
System.ClientPluginActions = [ ... ]
Sends typing indicator to the user interface.
Used in Microsoft Teams to handle invoke requests and responses.
Transfers control to external systems like AudioCodes.
The HTTP Request node and event/activity capabilities are among the most powerful features in Copilot Studio, enabling your agent to go far beyond basic messaging.
With HTTP requests, your agent can connect to external systems, retrieve real-time data, and perform operations. At the same time, event and activity nodes unlock advanced, event-driven communication—allowing interaction with client-side tools, triggering workflows, and handling asynchronous scenarios.
Once you understand both API integration and event-driven communication, your agent can evolve from a basic chatbot into a highly interactive, intelligent, and context-aware assistant that integrates seamlessly with both client and server systems.