Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Summary
This article helps you resolve an HTTP 400 Bad Request error that occurs when a connector action returns more than 500 KB of data in Microsoft Copilot Studio. When a connector response exceeds this limit, the request fails regardless of whether the connector is configured as an agent-wide action or a topic-specific action. To fix this error, configure the connector action inputs to filter the data that the service returns.
Symptoms
When you use connector tools together with custom agents in Copilot Studio, you encounter HTTP error code 400 and receive the following message:
Error Code: 400, Error Message: Bad Request
Cause
The connector request to the service returns more than 500 KB of data. This amount exceeds the Copilot Studio connector response limit.
Solution: Filter connector response data
Filter the connector response data by configuring the inputs to the connector action. Most connectors include input parameters that limit the data that the service returns. The available parameters vary by connector. For connector-specific details, see the connectors documentation.
For example, the ServiceNow connector Get Knowledge Articles action provides these filtering options:
Filterinput parameter - accepts a filter query to limit resultsLimitinput parameter - restricts the number of records that are returned
Configure these inputs in Copilot Studio by using the steps for either an agent-wide or a topic-specific connector tool.
Configure an agent-wide connector tool
Under Agents, select the agent that has the connector that you want to configure.
Select Tools to see the list of actions that are associated with the agent.
Select the tool that you want to configure.
Select Inputs, and then edit the input field that you want to configure.
Configure a topic-specific connector tool
Under Agents, select the agent that has the connector that you want to configure.
Select Topics to see the list of topics for the agent.
Select the topic that you want to configure to open the canvas for the topic flow.
On the canvas, select the connector node for the connector that you want to configure. The typical inputs that are identified from user input are displayed under Inputs.
Select Advanced inputs to access configurations for more input parameters.
Configure the inputs to filter responses.