https://discord.gg/botpress logo
Hello, I have a Botpress workflow that needs to su...
# 💻developers
w
Hello, I have a Botpress workflow that needs to summarize detailed company data. The user might type something like “Summarize company: 12345” in the chat, but that’s actually just for show—my bot doesn’t parse the ID from the user input. Instead: Wix/Webhook: My site sends a companyId in a POST request to a webhook (https://www.clienthut.co/_functions/myWebhook), which returns a JSON object of company details (name, owner, etc.) from a Wix CMS. Botpress Flow: Receives the JSON from the webhook’s HTTP response. Sends it to GPT to generate a concise summary. Finally displays the summary to the user. The Problem: After the HTTP request node returns 201 with the correct JSON, the next node throws this error:
Copy code
Error executing card "card:skill" in flow:SummarizeFlow:node:fetchCompanyData -
TypeError: Cannot create property 'EXIT' on string ''
It seems Botpress is expecting an object but is getting a string (or empty string) in the next skill/action. Everything works fine if I test the webhook in Postman, so the Wix side is returning the JSON as expected. What I’ve Tried: Making sure the HTTP Request card is set to POST with {"Content-Type": "application/json"} and a valid body. Ensuring the response is stored as JSON (not raw text) in Botpress. Looking at subsequent nodes to see if any code tries to treat the response as an object but it’s actually a string. Questions: How do I confirm the Botpress skill is definitely storing the webhook response as an object, not a string? Has anyone else seen “Cannot create property 'EXIT' on string ''” and resolved it by adjusting the card or subflow outputs? Thanks in advance for any suggestions!