request/body must have required property 'userId' - Webhook Trouble
Closed this issue · 2 comments
Make sure the issue is related to code located in this repository.
- I confirm that the reported bug or feature request is not related to Botpress on premise version (v12 and below)
- I confirm that the reported bug or feature request is not related to the Botpress Studio
- I confirm that the reported bug or feature request is not related to the Botpress Dashboard
Description of the bug or feature request
Hello,
I've been looking to send an Http request to Botpress using N8N (Make/Zapier alternative) and keep running into this issue (
It seems the userId is not being captured, despite the fact that it has been included in the payload and goes through within the Botpress emulator:
This was happening with "conversation Id", however it has since stopped and now only appears to being doing so for userId.
Am I doing something wrong, or do I have the payload structured incorrectly? Here is the payload structure within N8N if it helps:
Here is my workflow as well if it is helpful, as well as the execute code node that's used after the webhook trigger:
Any help is appreciated!
Thanks.
hey @AsherOttobot
I'm not sure what you are trying to do... From what I see:
- in your bot,
- you try sending a text message to the
webhook
integration - you are using an HTTP call instead of just sending a message using botpress primitives
Is this your intention?
If so, the webhook integration is not meant to:
- be called by your bot (it should be called by an external system)
- be sent messages (it's not a messaging channel)
I don't understand what you are trying to achieve and this makes it hard for me to help you,
Frank
closing this issue for lack of activity, feel free to reopen if needed.