Hello Community,
I am facing an issue with the "Execute Copilot" action in Power Automate. Despite sending prompts to Copilot, I am not receiving any response. The response object from Copilot is empty. Here is a detailed explanation of my setup and the steps I have taken:
Setup:
- Trigger: When an item is created in a SharePoint list.
- Actions:
- Get attachments: Retrieve file attachments from the SharePoint list item.
- Get items: Retrieve text content from the SharePoint list item.
- Execute Copilot: Send a prompt along with the file and text to Copilot for analysis.
- Parse JSON: Parse the JSON response from Copilot.
- Send an email (V2): Send the parsed response via email / Send the "Copilot Answer" Object" via email.
Prompt Message:
{
"prompt": "Provide the answer in JSON format with the fields: 1. Contract requirement, 2. Is it present? (Yes / No / Needs to be checked), 3. Justification (Why 'Yes, No' or 'Needs to be checked'? Include: How sure are you that your answer is correct in percentage?), 4. Source (Where exactly in the contract are the relevant details found?)",
"fileName": "@{outputs('Get attachments')?['body/name']}",
"fileContent": "@{base64(outputs('Get attachments')?['body/content'])}",
"textContent": "@{outputs('Get items')?['body/value']}"
}
JSON Schema for Parsing:
{
"type": "object",
"properties": {
"Contract requirement": {
"type": "string"
},
"Is it present?": {
"type": "string",
"enum": ["Yes", "No", "Needs to be checked"]
},
"Justification": {
"type": "string"
},
"Source": {
"type": "string"
}
},
"required": ["Contract requirement", "Is it present?", "Justification", "Source"]
}
Issue:
- The response object from the "Execute Copilot" action is empty.
- No data is returned despite sending the prompt and necessary data.
Steps Taken:
- Verified the prompt message for clarity and precision.
- Checked the configuration of the "Execute Copilot" action.
- Ensured proper connection and permissions.
- Tested the flow with different inputs.
- Reviewed troubleshooting guides for Copilot.
Request for Help:
I would appreciate any guidance or suggestions on how to resolve this issue. Is there something I might be missing in the configuration or setup? Has anyone else faced a similar issue and found a solution?
Thank you in advance for your help!