I'm looking to connect my Botpress bot to my disco...
# 🤝help
h
I'm looking to make a command on my discord bot
/ask {user query}
this would then send the query to my botpress bot and return the response. If anyone has any idea if or how this can be done any input would help! I haven't started on the botpress bot, the discord bot is up and running im just looking to add this command
f
Hey there, This sounds like a really nice project. You could try and use the webhook https://botpress.com/docs/cloud/channels/webhook/ I haven't done this myself, but I would love to know more about this
h
can i send you a dm?
f
Yea sure
h
so with that code this is the error
Copy code
Error executing action "inline-card:Send modified AI response to Discord webhook URL..js" in flow:Main:node:Standard2

HTTP (post) URL
Received "Cannot send an empty message"
Request failed with status code 400
{"scope":"bot-action","cardId":"card:Send modified AI response to Discord webhook URL.","nodeId":"node:Standard2","workflowId":"flow:Main"}
even tho the aiResponse is working
Copy code
js
var webhookURL = "webhookURL"

// Add the prefix '!response ' to the aiResponse
const modifiedAiResponse = '!response ' + workflow.aiResponse

// Send the modified aiResponse to the webhookURL
await axios.post(webhookURL, { aiResponse: modifiedAiResponse })
7 Views