here I’m facing an issue while using post method and passing custom data i know we can overcome that by using payload but can you pls explain how
@53394.hexaware
Hope you have gone through https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/working-with-the-service-node/#Define_a_Custom_Service
Inside the body you can have keys like
{
“key” : {{ context.session.BotUserSession.varName }}
}
i do followed that link and during run tine if i set the body to custom and content-type to application/json and while running it was automatically getting changed from custom to application/json.
@53394.hexaware
Not sure what you exactly mean that it was automatically getting changed from custom to application/json. That could be a UI issue though. Can you be little more more specific?
If you can share a curl (something that works) and let me know which parameter you want to pass in body, I can probably try to help.
@53394.hexaware
FYI - Double-checked the platform behavior. All the below work:
application/json
custom - with double quote (irresteptive of having content-type = application/json in the header)
custom - without double quote (irresteptive of having content-type = application/json in the header)