samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
598 stars 158 forks source link

Webhook Usage #953

Closed kumart4 closed 4 years ago

kumart4 commented 4 years ago

When trying to use a webhook to post the action to my node server I am getting following error: Error: Unexpected token u in JSON at position 0

Can you please point me to the fix or any tutorial where web hooks are explained

wrathagom commented 4 years ago

My guess is that your POST data isn't properly formatted, can you paste what you have for the POST body?

wrathagom commented 4 years ago

Closing for inactivity

rounakraj commented 4 years ago

even i am facing the same issue the post data is: { "text": "{{text}}", "action": {{{JSONstringify action}}}, "slots": {{{JSONstringify slots}}} }

If i use just "slots": {{{JSONstringify slots}}} the webhook call is success but if use intent or text or action it gives the above problem.