
Announcements
Hello everyone,
I’m trying to make an HTTP Node call in Copilot Studio and follow the structure outlined in this example. My current JSON body works fine in Power Automate Cloud Flow, but when I try to use the HTTP Node in Copilot Studio same payload is not working
Here’s the JSON structure that works in Power Automate using POST with POST https://<endpoint>.openai.azure.com/openai/deployments/<deploymentName>/extensions/chat/completions?api-version=2023-06-01-preview
{
"messages": [
{
"role": "system",
"content": "You are an AI assistant that helps people find information."
},
{
"role": "user",
"content": "@{triggerBody()?['text']}"
}
],
"temperature": 0,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"max_tokens": 800,
"stop": null,
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "https://xxx.search.windows.net",
"key": "xxxx",
"indexName": "xxxx"
}
}
]
}
{
messages: [
{
role: "system",
content: "You are an AI assistant that helps people find information."
},
{
role: "user",
content: Topic.UserInput
}
],
temperature: 0,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
max_tokens: 800,
stop: "null",
dataSources: [
{
type: "AzureCognitiveSearch",
parameters: {
endpoint: "xxxx",
key: "xxx",
indexName: "xxx"
}
}
]
}