I am attempting to send the contents of a variable, timecode_val, in the body to an HTTP service using AI Copilot Studio. The HTTP service takes JSON as input. I have created a topic with a trigger containing phrases setting an Entity, Timecode, as the first step. In the second step, I'm setting the contents of a variable, timecode_val to the entity, Timecode. In the third step, I attempt to call an HTTP Request with the following body, but I keep receiving an unknown error in the body of the script.
{ "timecode": @{variables('timecode_val')} }
Unfortunately, the online help doesn't cover the case of sending JSON variables. Perform HTTP requests - Microsoft Copilot Studio | Microsoft Learn
Might anyone know how to send a variable to an http post service using JSON format in AI Copilot Studio?
Screenshot of http request properties panel below.