Cognigy / Documentation

Stores documentation for all Cognigy products and acts as the source for https://docs.cognigy.com
Other
13 stars 3 forks source link

[Feedback] HTTP Request - /ai/flow-nodes/services/http-request/ #23

Closed SgastonBW closed 1 year ago

SgastonBW commented 1 year ago

Can you provide what the syntax would be to use variables from the context store in the HTTP request JSON payload option? Standard JS methods don't seem to work here including string interpolation. It always says invalid JSON and sends a blank request.

CognigyTechWriter commented 1 year ago

Thanks for submitting this. This is now in our backlog and will be improved.

CognigyTechWriter commented 1 year ago

Please refer to CognigyScript for an example payload.

{
    "customer_orders": {
        "$cs": {
            "script": "context.orders",
            "type": "object"
        }
    }
}

We have also added a new link to this here in HTTP Request.

Thanks again for reporting this, we will close this issue at this time.