🔐 Copy my AI tools & workflows: bit.ly/data-alchemy 💰 Kick-start your data freelance career: www.datalumina.com/data-freelancer
@traggerosbourne Жыл бұрын
Where is the link for the github repo
@daveebbelaar Жыл бұрын
github.com/daveebbelaar/python-whatsapp-bot
@BoominGame Жыл бұрын
Brilliant!!! thanks!
@sealandland3959 Жыл бұрын
@@traggerosbourne At least say "please"...
@sealandland3959 Жыл бұрын
@@daveebbelaar Thanks alot indeed beyond words
@xXaymanXxBG3 ай бұрын
finally found someone who genuinely want to help us rather than promoting no-code/low-code rip offs
@deveshpatel317627 күн бұрын
For real
@Vivek-j5m26 күн бұрын
hello please tell me What he actually did here 8:46 to get message on WhatsApp
@deveshpatel317626 күн бұрын
@@Vivek-j5m he just ran the quickstart python file using command python filename. Which basically send the test message using a test number make sure you have a .env file with test number configuration as mentioned
@codewithkin Жыл бұрын
You sir, have just earned yourself a new subscriber! Thank you so much for this tutorial, the documentation was a bit tricky but you killed it! Hope to see more from you in future, cheers Dave.
@SillyZillyMe Жыл бұрын
Really looking forward to the next video (hoping it is very soon). I would like to see how you convert this into a Production environment and setting it up to receive unverified numbers. This setup is very clean and I like that you don't have to botch together the use of other services in order to get it working like I have seen with other tutorials.
@sealandland3959 Жыл бұрын
Have you made it run in your side?
@aliabdou79838 ай бұрын
@@sealandland3959 have you ?
@mbottambotta Жыл бұрын
thanks Dave, really appreciate the trouble you went through to make this accessible to all of us. Great job! 🙏
@daveebbelaar Жыл бұрын
You're welcome!
@gabrielito42898 ай бұрын
Awesome, I don't have any idea either Python or programming in general, but this guy explain in such great way that I will try to do it.
@dhirajkahol Жыл бұрын
Thank you for this excellent step-by-step tutorial, was so much required. Keep going strong 👍🙏
@juicetin942 Жыл бұрын
Thanks
@daveebbelaar Жыл бұрын
Thank you! 🙏🏻
@abdallateefabdalla97914 ай бұрын
Thank you for this excellent step-by-step tutorial, was so much required. Keep going strong
@isragaytan Жыл бұрын
I am really impressed the great job you made Dave. Thanks to you absolutely. You win another subscriber. I bought a course on udemy on the topic and is not really good explained as you did here. Thanks to you for share your knowledge and keep the good work. Blessings!
@abdulrehmanbaber2104 Жыл бұрын
HI Dave, Great content! happy for you
@SillyZillyMe Жыл бұрын
I've been trying to use this for the past couple of days. The app will randomly receive updates from Whatsapp even if I have not sent a new message. I'm glad that I was able to learn a couple of techniques but this solution seems to be pretty broken. Hoping that the next videos shows a more complete solution for creating a Whatsapp bot. Looking forward to more content :).
@daveebbelaar Жыл бұрын
I am working on it! You can monitor the logs to see where they are coming from. There likely needs to be another filter for the webhooks to filter only new incoming messages.
@sealandland3959 Жыл бұрын
@@SillyZillyMeThanks a lot indeed beyond words for your comment, please keep us updated to check if you manage to make it work on your side. I have a good level of Python myself and would love to use this for complex projects
@innovAIte-05 ай бұрын
Ayy Yooo my boy! Thanks man this is a cool project. I successfully set it up
@silva821510 ай бұрын
Thanks so much for this helpful repo and video on that topic!
@easycodelab Жыл бұрын
Am stuck on this error when i try to get a test message for the very first time. 400 {'error': {'message': '(#131030) Recipient phone number not in allowed list' Am certain I did everything in the documentation/video. Any solutions??
@jeethendrabalaji869711 ай бұрын
You would have to override env variable, change load_dotenv() to load_dotenv(override=True)
@hallohoi774110 ай бұрын
Did you find a way to solve this issue? i'm facing the same problem right now
@anubiss2649 ай бұрын
@@hallohoi7741 Sorry i just figured out, in the .env file, delete the coment with the # and it works, also is witouth the +, for example if i have my spanish number should be :RECIPIENT_WAID="34xxxxxxxx", i hope it works for you now
@josealfonsx8 ай бұрын
@@hallohoi7741 did you? I'm still stuck in this part.
@josealfonsx8 ай бұрын
Found the solution in another comment by @mominali8397: Try not using the .env to load the enviroment variables, instead defin them in the same file as were the code is running.
@adolforangel104517 күн бұрын
Nice work! It helped a lot. I'm having trouble getting to see the messages sent by the user. Did someone had this issues before?
@sameergamer4567 Жыл бұрын
Make another video on how to finetune this on our own dataset.
@diegodelafuente17396 ай бұрын
Thanks for share your skills with the community. Great tutorial !
@prakharjain2548 Жыл бұрын
Thanks for the useful video. Was able to completely follow and set things up quite quickly.
@daveebbelaar Жыл бұрын
Great to hear!
@harish570611 ай бұрын
i got stuck on this ! any solutions ? 401 {'error': {'message': 'Invalid OAuth access token - Cannot parse access token', 'type': 'OAuthException', 'code': 190, 'fbtrace_id': '******'}} i already check my token and it is correct , what should i do ?
@gokulraj663311 ай бұрын
Thank you very much . The best video on using whatsapp api . Thank you again
@alperaydyn4 ай бұрын
Teşekkürler.
@daveebbelaar4 ай бұрын
🙏🏻🙏🏻
@ernestoflores38734 ай бұрын
You are the goat man! Thanks!
@recapped242 Жыл бұрын
i have really benefited from your video. thank you so much.
@manoranjansahu16809 ай бұрын
Thanks Dude. Can we add that bot in my whatsapp group and the bot able to do send messages in group
@JorgeDuenas-xm7xw24 күн бұрын
You are the best! THANK YOU
@juicetin942 Жыл бұрын
Man you are awesome, never seen a tutorial like this. How do I buy you coffee?
@daveebbelaar Жыл бұрын
That means a lot to me - thank you! KZbin actually has a feature for this where you can click "thanks" just underneath this video (same row as the like button).
@eduardodelagarza33187 ай бұрын
If you are using VSCode you can use the "ports" feature which takes about 30 seconds. Instead of all the hasle of ngrok. Make sure you set the port to public
@skeptomai978 ай бұрын
Thank you i needed a detailed tutorial like this one. Just to know, do you hace any code example or tutorial tu use OpenAI and google calendar to make apointments via agents/function calling to add to this tutorial?
@pmig817 ай бұрын
This is great stuff 😊 subscribed! Instead of uploading a pdf file for the gpt assistant, can I use a database?
@NirajUbale Жыл бұрын
00:02 Build a free AI WhatsApp bot with Python 02:15 Setting up the initial bot for AI WhatsApp Chatbot 06:59 Create a longer-lasting token for WhatsApp API setup 09:22 Configuring connection and sending custom messages on AI WhatsApp chatbots. 14:02 Enrock tool helps bypass local host for testing purposes. 16:14 Integrating with WhatsApp involves setting up a webhook and verification token. 20:42 Understanding web hook security and its implementation 22:47 Learn how to sell and monetize by building WhatsApp AI Bots as a freelancer 26:56 Build a WhatsApp AI bot to process and respond to messages. 28:58 Configuring Flask app for WhatsApp utilities
@blenderdad4 ай бұрын
Thank you for this excellent and in depth video!
@JeroenErne29 күн бұрын
This is wonderful!
@Vivek-j5m26 күн бұрын
hello please tell me What he actually did here 8:46 to get message on WhatsApp
@fabio336ful11 ай бұрын
Thanks a lot! Great tutorial!
@varelaseb Жыл бұрын
For everyone running into 403, it's in the decorator. Or at least it was for me. If you comment out the security required and @security required on the views.py file you should be good to go. Might not be the entirety of it but hopefully it sends you all in the right direction
@Cheikna98 Жыл бұрын
Thank you, I had the 403 ERROR (even after copying and pasting the same TOKEN). I added a # for @signature_required in app/views.py and it worked
@NicholasBaird-l2q Жыл бұрын
This unfortunately did not work for me. I've had a TON of verification issues on MacOS that have taken hours to work around. Not sure what I'm doing wrong & chatGPT can't figure it out either lol
@NicholasBaird-l2q Жыл бұрын
Solved this for me: after running ngrok I had to restart the flask app. Maybe it's the order of things... Didn't need to comment out anything from the decorators
@b3armonk10 ай бұрын
@@NicholasBaird-l2q Yes you are right, once I followed your order of things it worked even without commenting out anything. First I ran Ngrok, then I start a fresh activation of my virtual env, started my run.py server, and finally only I went to verify and save on the Webhook configurations page. The 403 is gone then and I managed to save it. Hope this helps someone. Thank you @user-tg4vj5ou8m
@chrisquinn33779 ай бұрын
@@b3armonkcan you provide more detail, do you have a web server? And do I need to add a .venv to the code
@UnbelievableButTrueInfo8 ай бұрын
Hi @dave Ebbelaar goede video. Ik vroeg me af hoe het zit met memory in de chat zelf
@andreysorokin1236 Жыл бұрын
Please make a video on how to launch functions in the assistant
@TendaiShoko6 ай бұрын
That is the most important part l didnt also get .
@camelendezl7 ай бұрын
For people experiencing the webhooks error "The callback URL or verify token couldn't be validated. Please verify the provided information or try again later.", the issue is that Meta don't consider some regions of ngrok as "safe". The solution is to try with other tunneling methods like pinggy, serveo, etc.
@PoorviAgrawal-c8h6 ай бұрын
I resolved this with cloudflare tunnel but I think the issue is of the access token somewhere. Also I get the error Recipient number not in the allowed list each time I change the access token and gets resolved on changing the recipient_waid variable name, do you have a solution for that?
@elpablitorodriguezharrera Жыл бұрын
Can you make it connected to GPT-4 and other text-to-image like Fooocus? It'd be super nice having Midjourney killer.
@eversonpergher2164 Жыл бұрын
Did you get GPT-4 or other AI connected?
@Alice800010 ай бұрын
COOL BRO. Nice tut tut.
@paritoshpandey57059 ай бұрын
Can we have a video on how we can connect whatsapp to one of our own custom chatbots that works on our own AI model rather than Chat-GPT please ?
@BhanuPratap-q7x16 күн бұрын
Hi @paritoshpandey5705 , have you found the solution for this?
@carlav528510 ай бұрын
What a nice video. Thank you! :)
@gslvqz88122 ай бұрын
With so many options out there, you really do not need Python as the middle man though. Even Voiceglow can do that for you with a more no -code approach
@bandui4021 Жыл бұрын
Thanks, Dave! What kind of data can be used apart from a PDF? A screenshot or the information from a URL for example?
@daveebbelaar Жыл бұрын
Because this is a custom setup, you can literally use any data you can imagine. You would just have to create a separate service for that.
@leorossi84037 ай бұрын
Great video! Learnt a lot
@GilHerzbergAlperon Жыл бұрын
thanks dave, outstanding project
@daveebbelaar Жыл бұрын
Glad you enjoyed it
@mista_ia Жыл бұрын
Thank you for making this accessible. So, We can't make it enter Groups? Can't do stickerize things mostly, etc. ?
@nachomalaga115 ай бұрын
Hey Dave, what tool or platform do you use to view and manage messages as a company, especially if you want to pause automation and send messages manually?
@KetanChaudhari-vc7es8 ай бұрын
Great tutorials! Is there any way that I can add users using API calls and not manually through meta developer app portal?
@al-aminibrahim13947 ай бұрын
Great video❤❤
@manassisodia61169 ай бұрын
Hey Dave, Thanks for tutorial, One more question, can we use our own api (based on llm which can answer question on my data ) and then use it to send answer to the questions asked on this whatsapp bot?
@cryptokazakh4 ай бұрын
cool it is working nice, do you have a video or tutorial about deploying this app on server?
@obatochukwu26752 ай бұрын
There are alot like pythonany where but but if you need I can guide you on deploy on aws. Just comment below
@muhammedshameem36193 ай бұрын
Hey Sir,it’s very helpful.i have a doubt regarding first message sending. Can bot send first message via whatsapp?
@obatochukwu26752 ай бұрын
You can use icebreakers
@TheMangz16118 ай бұрын
This is GOLD!
@jean-christopheyervant4308 ай бұрын
Thanks BRO it's amazing CONTENT I love you
@Manish-g2k3g11 ай бұрын
Brilliant content :)
@DaBo17 ай бұрын
Very usefull video, thank you! i must have then open the computer in order for automation to happen if yes, how i can do then this in cloud to avoid keeping computer live 24/7 thank you!
@cristianp.8844 ай бұрын
Thanks for your video, it was really useful save my job XD
@RowanFonda10 ай бұрын
Very very cool! Thank you
@ElectroCoderEC10 ай бұрын
What a beautifil tutorial, but i missed the section when you add more phonenumbers for clients, or add them to a whatsapp group. does it possible??
@b3armonk10 ай бұрын
just edit the code so all numbers that comes in are from people who text to you.
@xiangyuli5046 ай бұрын
great video!! Where is the video about migrating to the real server? Many Thanks
@phoebebright9 ай бұрын
FYI my eu based ngrok domain could not be verified as a webhook callback url, it was not even called. But a non eu ngrok domain worked fine.
@jean-christopheyervant4308 ай бұрын
Hey I have the same problem here bad gateway 502 Bad Gateway how did you create a non UE ngrok domain ? should I use some VPN or sth ?
@jean-christopheyervant4308 ай бұрын
Region United States (us) I found the solution in the ngrok.yml but still US not working
@31011997 ай бұрын
please explain how to not use ngrok domain! :)
@phoebebright7 ай бұрын
@@3101199 - so you can create a new domain in ngrok that can be based in the eu, just not with eu in the domain name.
@tapelongwenya9 ай бұрын
Just a quick one, am new to dev, how can I make the menu within the message templates to engage with a client when they send a message. E.g Main menu > Customer service > chat with an agent
@nourshosharah21962 ай бұрын
Thank you, did you saved the number in your contact to Airbnb bot ? Or it show as the name of the bot ? And can anyone send to this bot , and how can people send thier question to the number or can take the id of the bot ?
@karthikeyakuncham69296 ай бұрын
Excellent video!.....i have followed the same as u shown in the video but facing this error (The callback URL or verify token couldn't be validated.) while configuring webhook can u please help me through this?
@aidanaualikhan41027 ай бұрын
When I try to create a webhook in whatsapp configuration, it says that the ngrok URL couldn't be validated and when I try to create a webhook in webhooks it says that ngrok URL is malicious. What can I do?
@31011997 ай бұрын
same
@guilhermecarlos63607 ай бұрын
You can use VSCode port forwarding instead of NGROK, I have gone through the same problem
@adithyabalagoni27047 ай бұрын
@@guilhermecarlos6360 how?
@H_A-nb4uf7 ай бұрын
@@guilhermecarlos6360 wht else u did ?
@31011996 ай бұрын
@@guilhermecarlos6360 Thanks friend, could you please explain a little further how to do that? I could not even use ngrok, meta's platform never validated my webhook url
@dumindukavishka14894 ай бұрын
Nice Work !!!
@randomtutorial54625 ай бұрын
Awesome tutorial. I can get it working. When I run the server it sends multiple messages. How would I get around this ?
@andretosin7 ай бұрын
It’s still working with ngrok? I couldn’t configure the webhook when running through this tunnel.
@aicha59877 ай бұрын
Same
@samuelpfisterer16597 ай бұрын
It seems like it is not working anymore: kzbin.info/www/bejne/gqXUZq14rq-if7M
@olivergilestradahernandez1007 ай бұрын
@@samuelpfisterer1659 it don´t work any more
@camelendezl7 ай бұрын
try using an alternative like serveo or pinggy
@semtitulo2909 Жыл бұрын
Best WhatsApp video out there
@abuharibrahim979 Жыл бұрын
Can you add more videos for your Alchemy classroom?
@capitaoTigelinha11 ай бұрын
i am getting the error Signature verification failed! I alreqady reloaded the tokenm, created and tested a new ngrock domain many times but it doesnt work. any tips here?
@bulutosman9 ай бұрын
Hi, I could not see the link for the video that you mention at 25:45
@KasunWijesekara Жыл бұрын
Thank you for this dude
@daveebbelaar Жыл бұрын
Happy to help!
@python-sem-mimimi2 ай бұрын
My code, every time I talk to the bot, it only repeats what I say, not giving intelligent responses. What could be the issue? I would like to thank you for the very cool video
@luisjaimemartinez6848 Жыл бұрын
Great video tutorial, i followed all video but i implemented server webhook using nodejs and express, everything works fine until i try to consume meta's cloud API, im getting: Recipient phone number not in allowed list: Add recipient phone number to recipient list and try again. Any thoughts?
@mominali83979 ай бұрын
Try not using the .env to load the enviroment variables, instead defin them in the same file as were the code is running.
@CapDavyJons Жыл бұрын
Thank you 🙏
@wongr643 Жыл бұрын
somehow i keep getting 403 when i try to verify... not sure why... even when i changed the code to hardcode the logic it still wouldn't send 200. By the way the path in documentation is wrong, you put webhook"s" in the path but it should be webhook. You may want to update that. Thanks Dave for the great content
@daveebbelaar Жыл бұрын
Getting the verification can be tricky. All the pieces have to be in the right place. Also, thanks for pointing that out about the/wehook! I've corrected in the docs.
@xxx182 Жыл бұрын
Having the same issue. Tried to deploy to Google app engine and got the same. Anyone was able to fix it?
@aureliengruchy7769 Жыл бұрын
Did you solve the issue ? I have the same problem where i don't get the X-Signature-256 in the request header ...
@SillyZillyMe Жыл бұрын
@@aureliengruchy7769 I'm digging through the code right now to figure out where I am going wrong. The "signature" variable for be is empty when I run the program.
@SillyZillyMe Жыл бұрын
I had to modify the code in order to verify the webhook. @webhook_blueprint.route("/webhook", methods=["POST", "GET"]) @signature_required def webhook(): if request.method == "GET": return verify() elif request.method == "POST": return handle_message() I removed this in the views.py and replaced it with the following: @webhook_blueprint.route("/webhook", methods=["GET"]) def webhook_get(): return verify() @webhook_blueprint.route("/webhook", methods=["POST"]) @signature_required def webhook_post(): return handle_message() I also had to comment out a section in whatsapp_utils.py that maybe I just missed in the tutorial. The custom TO-DO response variable wasn't commented out. # TODO: implement custom function here #response = generate_response(message_body) I haven't tested anything past this point but I will update this comment once I successfully make it through the complete tutorial. ChatGPT is crazy good.... I would have never figured this out. EDIT: I was able to get this tutorial to work with the changes that I made @daveebbelaar However I am seeing that the app seems to be getting some some calls to the webhook that repeats a request for old information multiple times. Going to do some more playing around and see what the issue may be.
@cavalcanteluiz4139 ай бұрын
Great tutorial, brother!! Thank you.
@ferasalfarsi897 Жыл бұрын
Please, zoom in , the font is very small to read and see.
@jakeh18295 ай бұрын
Is audio message supported?
@ShubhamRajpurohit-c4w9 ай бұрын
sir , my webhook is working and credintials are verified on local but on server its not working
@Vivek-j5m26 күн бұрын
@ShubhamRajpurohit-c4w hello please tell me What he actually did here 8:46 to get message on WhatsApp
@jilojamba Жыл бұрын
can we integrate this on websites Dave?
@Iker44insua10 ай бұрын
Hi Dave, is it possible to find a. Easier way??
@IvanRaitmanАй бұрын
Hi! How do I not infringe Meta's policies regarding not creating “Automations that mimic human activity”?
@nilalzmn9 ай бұрын
hi is there any way that i can change the image thumbnail when sharing a link? i wanna make my link personalized
@maxamad13 Жыл бұрын
I have yet to see any videos on chatbot and if the customer needs live agent it will transfer. Can you help me with that or point me to some kind of library or services. Thanks
@prathamnotorious8685 Жыл бұрын
Do we necessarily need a real business account ? I don't have a business email ... What can I do?
@vitiadrian2 ай бұрын
@daveebbelar thank you very much for you video! it is amazing! i have set it up, i just have one question, my AI responds perfectly but seems like it is not accessing the file correctly, it just gives very generic answers and never related to the pdf. Why can this be happenning? THanks!
@Vivek-j5m26 күн бұрын
hello please tell me What he actually did here 8:46 to get message on WhatsApp
@mehdizoghi-ob1dm Жыл бұрын
Hi, i get this error while trying to add callback url . Do you have any idea? Thanks : "message": "Invalid signature"
@chrisquinn33779 ай бұрын
I am getting this error aswell did you figure it out?
@TheStRaX_ Жыл бұрын
Hey admij, can you upload video on how to upload flask app?
@daveebbelaar Жыл бұрын
Check out this video: kzbin.info/www/bejne/nIWoqHqZhdZ_l5o
@sawdickagboke27696 ай бұрын
I clone the repo and everything and i still couldn't pass the first step because of error 400 and showing recipient number is not allowed list
@abdallateefabdalla97914 ай бұрын
Did you find the solution? I am also suffering from this problem.
@sawdickagboke27694 ай бұрын
@@abdallateefabdalla9791 I think the problem is from the decorator, I was able to pass this step but the next step was giving problem again
@obatochukwu26752 ай бұрын
@@abdallateefabdalla9791 I can help please drop a comment
@liuhedev14 күн бұрын
i can't find the product of whatsapp?
@pra84956 ай бұрын
getting error while adding business portfolio "Onboarding Failure You have been temporarily blocked from performing this action."
@obatochukwu26752 ай бұрын
Have you been able to resolve this?
@pra84952 ай бұрын
@@obatochukwu2675 no, I used another account
@AhmadRosyidin-z3n Жыл бұрын
I'm in my 20s learning to be a programmer/coding, is it too late or not? I'm doubtful about my current age of 🙂
@StickySmth4 ай бұрын
will this work if i use gemini api?
@uzairleo2910 Жыл бұрын
Thats Awesome But you have to must mention this thing in title of video "How i Build RULE BASE "chatbot not AI Chatbot
@IbrahimKhan-tw5bf Жыл бұрын
He did make an AI chatbot if you went through the end of the video
@sandeepv2441 Жыл бұрын
Add custom function for response . And define there ur prompts
@NicholasBaird-l2q Жыл бұрын
Basically learning that this entire provided code base breaks constantly on MacOS because it has issues with homebrew installed python.
@aliabdou79838 ай бұрын
But what if i want all users to contact my bot not only the number we did setup ?
@4rjunc Жыл бұрын
Is there any request limitation while using meta APIs?