I'm trying to send a message to a Copilot agent from Power Automate but I keep getting a 404 error.
Request:
{
"host": {
"connectionReferenceName": "shared_microsoftcopilotstudio",
"operationId": "ExecuteCopilot"
},
"parameters": {
"Copilot": "VON_XXXXXXAgent",
"body/message": "Process the staging document with ID:78b601d0-b291-f111-8076-6045bdf08a53\n"
}
}
Response:
{
"error": {
"code": 404,
"source": "9137b447-dc3b-ef56-98d2-ff60cf8e3e00.18.common.usa002.azure-apihub.net",
"clientRequestId": "53702b8b-a82e-4ceb-9671-0e38d97531e4",
"message": "The response is not in a JSON format.",
"innerError": "Cannot read server response."
}
}
I have tried both Execute agent and Execute agent and wait. But, I get the same 404 error in both cases. Also, tried publishing agent, tried with new Copilot studio connection, recreated action.
Has anyone seen this issue before, or can anyone suggest what might be causing it?