botpress / botpress

The open-source hub to build & deploy GPT/LLM Agents ⚡️
https://botpress.com
MIT License
12.5k stars 1.74k forks source link

request/body must have required property 'userId' - Webhook Trouble #13054

Closed AsherOttobot closed 4 months ago

AsherOttobot commented 5 months ago

Make sure the issue is related to code located in this repository.

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 ( Error Message

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: Payload body in 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: HTTP Headers HTTP Body HTTP Body (2)

Here is my workflow as well if it is helpful, as well as the execute code node that's used after the webhook trigger: Execute Codeblock Botpress Workflow

Any help is appreciated!

Thanks.

franklevasseur commented 5 months ago

hey @AsherOttobot

I'm not sure what you are trying to do... From what I see:

Is this your intention?

If so, the webhook integration is not meant to:

I don't understand what you are trying to achieve and this makes it hard for me to help you,

Frank

franklevasseur commented 4 months ago

closing this issue for lack of activity, feel free to reopen if needed.