I’m currently trying to create a Chatflow in Flowise where the user can speak to a LLM and be able to ask it to send a message to Discord by connecting the two via Webhook in a Make.com Scenario.
I have a Webhook linking Discord to Make and then another one linking Make and Flowise.
I followed the Guide in the Flowise documentation but at the moment while the LLM tells me that it succesfully send the message to discord when I request it nothing arrives on the Discordchannel.
When I start the Scenario in Make manually it says that the Webhook linking to Flowise is not able to generate a bundle. Is it a problem in how I have to set up the Data Structure in the Make_to_Flowise Webhook so the Discord one can properly recognize the Message? If so what do I need to change?
These are my current settings:
Webhook to Flowise
Data Structure in Webhook to Flowise
Webhook to Discord
The JS in my Flowise custom tool is as follows:
const fetch = require('node-fetch');
const webhookUrl = 'https://hook.eu2.make.com/redacted';
const body = {
"message": $message
};
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
};
try {
const response = await fetch(webhookUrl, options);
const text = await response.text();
return text;
} catch (error) {
console.error(error);
return '';
}
Nil-Morah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.