make.com integration
# 🤝help
g
Using the make.com integration do I need to do the two webhooks Method that there is a tutorial on still to send information into Botpress or are there now other methods to send info into my bot. I want to scrape data to send into my bot but using the two webhooks I can’t send data scraped only messages I type
@fresh-fireman-491
f
Hey there, You can use the webhook integration if you just want to send data to your bot. If you want to send data back to your bot after you made an API call to Make's webhook then you can use the Webhook Response module which Devmik used here https://discord.com/channels/1108396290624213082/1180929476624912394
It doesn't look like you have any modules in your make.com scenario to scrape data from a source.
g
Hi bro, cheers for the reply, I’ve tried but I need a trigger to send the info to my Botpress bot, and a trigger to scrape what I want, and I can’t save the variables accross my two make scenarios can I?
As I can’t have two triggers in one scenario
f
I don't think that you can save them across multiple scenarios. Why do you need 2 triggers?
g
Don’t I need a trigger to send info into the bot?
f
Why not just scrape what you want and send it
g
I don’t know how to send it into my bot without using a trigger bro
A webhook trigger
f
Do you want to occasionally scrape something or do you want to scrape something every time something gets updated?
g
Everytime it’s updated
It’s complex bro that’s why I was trying to use the slack channel as like a 3rd party to pass info
🤣🤣🤣
f
Everytime what is updated?
g
So new emails
f
Do you need the new emails instantly? Or can it just be updated once a day or a few times a day?
g
I was thinking instantly
f
Alright
g
Didn’t really think about it once a day or like that
f
You can run your Scrape scenario and then use the HTTP Request module
To send it to Botpress' webhook
g
How would that work bro
Waiiiit
I think I understand
Is there a custom code module in make ??
To send to my Botpress webhook
f
You use the Webhook integration from Botpress https://botpress.com/docs/cloud/channels/webhook/ Then you set up your scenario on Make.com to listen for new emails. Then you send these new emails to the Webhook on Botpress. Then you use the Webhook Event in Botpress to receive and process the data from Make.com
You can use the HTTP Request module in Make.com to send your information to Botpress
g
Which would it be ?
f
You can read about all of them here https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods and then decide which one fits your use case the best
g
Okay bro thank you
f
Where do you want to have the emails that you scraped, in a table?
g
No just in text
Raw text file I guess
f
So you are planning on storing them in a variable in Botpress?
g
Yeah
f
Why not use a table for this?
g
Will it not go in as event preview?
I can do
f
no
g
If it can read the table
I will
f
event.preview is to get the users latest message
g
Yeah so do I need a custom code block ?
f
What is it?
For?
g
To get the information sent to run through my bot
How will what is sent run through it?
f
I am not sure I fully understand this message
You have multiple options here. I would recommend you to read the Tables documentation to learn more https://botpress.com/docs/cloud/studio/tables/
g
Okay mate no worries
Thanks for ur help bro ur the man 💯
f
You are very welcome, and let me know how it works out!
Oh yea right. Botpress released their tables API this week, which you can use instead of the webhook! Docs: https://botpress.com/docs/api-documentation/#tables Dev stream about it:

https://www.youtube.com/watch?v=NRXwNdSUlz0

g
Hey @fresh-fireman-491 I tried doing the http request sending info to mt bots Botpress webhook url. I used a trigger to trigger on webhook integration but it’s not working 😦
My*
f
Are you using the webhook event trigger
g
How do I get that !!
I don’t see it anywhere
f
The webhook integration
Sent the link to it here
g
It just came up, this wasn’t there before that’s weird
Do I need to set up a filter aswell?
f
No
g
Yeah I’ve already read it, but no events are coming to my webhook
I’m trying to discover them from the workflow but there’s nothing
f
Are you using the webhook given by the webhook integration
Is it giving you any errors on make.com when sending to it?
g
Bro I’m an idiot turns out it was going to the wrong webhook, still doesn’t mean it’s working yet but sorry for wasting ur time bro 🤣🤣I’ll Let u know soon as I get it working
f
No worries, have done similar things. You can try and start out by seing if you can get it to work from something like PostMan. Then move onto getting it to work from Make
g
Still not working ffs
f
I can try and do a video on Webhooks and how they work. Just gotta finish this school assignment first.
g
Alright mate I’m waiting thank u x
f
Hey there I finally finished the school work. This was made in a bit of a hurry, but I explain the basics here and how you can test it from a software like Insomnia or PostMan. https://discord.com/channels/1108396290624213082/1216153876051267584
Hopefully this is enough for you to continue, but if you run into more problems let me know.
15 Views