I am facing this error sometimes when creating an AI Agent in Copilot Studio.

Prince Patel 30 Reputation points
2025-12-05T07:38:16.1966667+00:00

{"isNL2AgentError":true,"error":{"code":"UnknownNL2AgentError","isSystemError":false,"message":"{"name":"AxiosError","message":"Request failed with status code 400","data":{"ErrorCode":4003,"ErrorMessage":"The request must contain at least one user message with non-empty content.","ErrorInfo":null,"Error":{"RetryIn":null,"InnerErrors":[],"Code":"InvalidInput","Message":"The request must contain at least one user message with non-empty content.","Properties":{},"Diagnostics":null}},"status":400,"statusText":"","responseHeaders":{"x-ms-correlation-id":"7f66dec6-b68d-4afe-b47f-30ade6acddaf","x-ms-service-request-id":"acccd659-1f14-4d89-9cca-85a7268716ba"}}"}}

Microsoft Copilot | Microsoft 365 Copilot | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-05T07:38:27.15+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error you are encountering indicates that the request sent to the AI Agent in Copilot Studio is missing a user message with non-empty content. Specifically, the error message states: "The request must contain at least one user message with non-empty content." This typically means that when you are trying to create or interact with the AI Agent, the input provided does not include any meaningful user message, which is required for the request to be processed successfully.

    To resolve this issue, ensure that your request includes at least one user message that is not empty. Check the input parameters you are sending to the agent and make sure they contain valid content.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.