How To Connect OpenAI To WhatsApp (Python Tutorial)

Поделиться
HTML-код
  • Опубликовано: 11 июн 2024
  • A lot of data professionals want to explore freelancing, but lack the systems, tools, and guidance on how to get started. If you're curious about how we help data analysts, engineers, and scientists, beyond these videos, the link below will explain. No nonsense, no webinar and no "free training". Check it out: www.datalumina.com/data-freel...
    🔗 Links in this video
    github.com/daveebbelaar/pytho...
    ⏱️ Timestamps
    00:00 Introduction
    00:57 Meta Prerequisites
    01:22 Create Your Meta Business App
    02:25 Add WhatsApp to the App
    02:41 Select Phone Numbers
    04:37 Send Messages with the API
    11:57 Configure Webhooks to Receive Messages
    20:40 Understanding Webhook Security
    23:14 Learn about the API and Build Your App
    24:11 Integrate AI into the Application
    28:33 Integrate Your Own AI Functions
    👋🏻 About Me
    Hey there! I'm Dave, an AI Engineer and the founder of Datalumina, where our mission is to facilitate entrepreneurial and technological proficiency in professionals and businesses. Through my videos here on this channel, my posts on LinkedIn, and courses on Skool, I share practical strategies and tools to navigate the complexities of data, artificial intelligence, and entrepreneurship.
    🛠️ My Development Workflow
    • My Development Workflo...
    ✔️ My Project Management Tool
    clickup.pxf.io/datalumina
    🎓 Our Training Programs
    www.skool.com/data-alchemy
    www.skool.com/data-freelancer
    🔗 Let's Connect
    / daveebbelaar
    / daveebbelaar
    📥 Datalumina's Newsletter
    www.datalumina.com/newsletter
    📊 How I'm using data to track my health
    join.whoop.com/datalumina
    #ai #whatsapp #bot
    📌 Video Description
    In this video, Dave shares how he set up a WhatsApp AI bot using only Python, and he did it for free. He carefully shows you through a repository with all the code and instructions you need to do this on your own devices. Dave makes sure you know the basics, like understanding Python and setting things up in VS Code, so you're ready to make your own WhatsApp AI bot. He points out that you should start with a Meta developer account and make a business app. This is key for linking WhatsApp with the bot.
    Dave goes into the technical steps of getting the WhatsApp business app and API ready. This includes getting a test phone number and adding it to Meta's developer portal. He teaches how to use the API to send messages and the important part of setting up environment variables for the bot to work smoothly. Dave shows you how to send a "Hello World" test message and why replying to this message is important for more custom messaging. This part is essential to understand how the bot works with WhatsApp's messaging service.
    Next, Dave talks about webhooks, which let the bot receive and answer messages on its own. This part can be tough but also rewarding. It's about setting up webhooks to act when messages come in. Dave takes you through how to set up and protect webhooks, so you can get your applications to listen for messages well. This is important if you want to make interactive and quick-to-respond WhatsApp bots.
    Towards the end of the video, Dave looks at adding AI to the WhatsApp bot. This turns it from a simple auto-responder into a smart AI assistant that can handle complex questions. He shows how to use OpenAI services to make the bot better, giving you a peek at what AI can do in messaging apps. Dave finishes by encouraging you to look into more API features and think about the security of webhook interactions. This guide isn't just a tutorial; it's an invite to dive into the exciting mix of AI and messaging apps. It gives you the tools and info to create your own advanced WhatsApp AI bots.

Комментарии • 218

  • @daveebbelaar
    @daveebbelaar  6 месяцев назад +10

    🔐 Copy my AI tools & workflows: bit.ly/data-alchemy
    💰 Kick-start your data freelance career: www.datalumina.com/data-freelancer

    • @traggerosbourne6877
      @traggerosbourne6877 6 месяцев назад

      Where is the link for the github repo

    • @daveebbelaar
      @daveebbelaar  6 месяцев назад

      github.com/daveebbelaar/python-whatsapp-bot

    • @truehighs7845
      @truehighs7845 6 месяцев назад

      Brilliant!!! thanks!

    • @sealandland3959
      @sealandland3959 6 месяцев назад +1

      @@traggerosbourne6877 At least say "please"...

    • @sealandland3959
      @sealandland3959 6 месяцев назад +2

      @@daveebbelaar Thanks alot indeed beyond words

  • @codewithkin
    @codewithkin 5 месяцев назад +10

    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.

  • @dhirajkahol
    @dhirajkahol 5 месяцев назад +1

    Thank you for this excellent step-by-step tutorial, was so much required. Keep going strong 👍🙏

  • @mbottambotta
    @mbottambotta 6 месяцев назад +2

    thanks Dave, really appreciate the trouble you went through to make this accessible to all of us. Great job! 🙏

  • @gabrielito4289
    @gabrielito4289 7 дней назад

    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.

  • @user-wh2im7gq6s
    @user-wh2im7gq6s 4 месяца назад +3

    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

  • @SillyZillyMe
    @SillyZillyMe 6 месяцев назад +7

    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.

  • @silva8215
    @silva8215 2 месяца назад

    Thanks so much for this helpful repo and video on that topic!

  • @cavalcanteluiz413
    @cavalcanteluiz413 Месяц назад

    Great tutorial, brother!! Thank you.

  • @recapped242
    @recapped242 4 месяца назад

    i have really benefited from your video. thank you so much.

  • @isragaytanmistico
    @isragaytanmistico 5 месяцев назад +1

    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!

  • @gokulraj6633
    @gokulraj6633 3 месяца назад

    Thank you very much . The best video on using whatsapp api . Thank you again

  • @fabio336ful
    @fabio336ful 3 месяца назад

    Thanks a lot! Great tutorial!

  • @carlav5285
    @carlav5285 3 месяца назад

    What a nice video. Thank you! :)

  • @jean-christopheyervant430
    @jean-christopheyervant430 15 дней назад

    Thanks BRO it's amazing CONTENT I love you

  • @prakharjain2548
    @prakharjain2548 5 месяцев назад +1

    Thanks for the useful video. Was able to completely follow and set things up quite quickly.

    • @daveebbelaar
      @daveebbelaar  4 месяца назад

      Great to hear!

    • @harish5706
      @harish5706 4 месяца назад

      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 ?

  • @TheMangz1611
    @TheMangz1611 23 дня назад

    This is GOLD!

  • @user-bc6bb3pd5k
    @user-bc6bb3pd5k 3 месяца назад

    Brilliant content :)

  • @user-zw8bj6it4q
    @user-zw8bj6it4q 5 месяцев назад

    thanks dave, outstanding project

  • @RowanFonda
    @RowanFonda 3 месяца назад

    Very very cool! Thank you

  • @Alice8000
    @Alice8000 2 месяца назад

    COOL BRO. Nice tut tut.

  • @abdulrehmanbaber2104
    @abdulrehmanbaber2104 6 месяцев назад +5

    HI Dave, Great content! happy for you

  • @KasunWijesekara
    @KasunWijesekara 6 месяцев назад

    Thank you for this dude

  • @CapDavyJons
    @CapDavyJons 4 месяца назад

    Thank you 🙏

  • @mista_ia
    @mista_ia 6 месяцев назад +1

    Thank you for making this accessible.
    So, We can't make it enter Groups? Can't do stickerize things mostly, etc. ?

  • @UnbelievableButTrueInfo
    @UnbelievableButTrueInfo 5 дней назад

    Hi @dave Ebbelaar goede video. Ik vroeg me af hoe het zit met memory in de chat zelf

  • @semtitulo2909
    @semtitulo2909 5 месяцев назад

    Best WhatsApp video out there

  • @skeptomai97
    @skeptomai97 19 дней назад

    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?

  • @sameergamer4567
    @sameergamer4567 6 месяцев назад +8

    Make another video on how to finetune this on our own dataset.

  • @andreysorokin1236
    @andreysorokin1236 6 месяцев назад +1

    Please make a video on how to launch functions in the assistant

  • @juicetin942
    @juicetin942 4 месяца назад

    Man you are awesome, never seen a tutorial like this. How do I buy you coffee?

    • @daveebbelaar
      @daveebbelaar  4 месяца назад +1

      That means a lot to me - thank you! RUclips actually has a feature for this where you can click "thanks" just underneath this video (same row as the like button).

  • @bulutosman
    @bulutosman 2 месяца назад

    Hi, I could not see the link for the video that you mention at 25:45

  • @manassisodia6116
    @manassisodia6116 Месяц назад

    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?

  • @bandui4021
    @bandui4021 6 месяцев назад +1

    Thanks, Dave! What kind of data can be used apart from a PDF? A screenshot or the information from a URL for example?

    • @daveebbelaar
      @daveebbelaar  6 месяцев назад

      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.

  • @KetanChaudhari-vc7es
    @KetanChaudhari-vc7es 24 дня назад

    Great tutorials! Is there any way that I can add users using API calls and not manually through meta developer app portal?

  • @YasuoMidOnly
    @YasuoMidOnly 6 месяцев назад

    great vid

  • @capitaoTigelinha
    @capitaoTigelinha 3 месяца назад +1

    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?

  • @abuharibrahim979
    @abuharibrahim979 6 месяцев назад

    Can you add more videos for your Alchemy classroom?

  • @diakhadiop2128
    @diakhadiop2128 5 месяцев назад

    it works perfectly but when i ask questions related to the pdf file, the first answer is normal but the GENERATED message says something like it doesn't information related to the airbnb and stuff although in the IDE it answered correctly, anyone can help?

  • @maxamad13
    @maxamad13 6 месяцев назад

    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

  • @nilalzmn
    @nilalzmn Месяц назад

    hi is there any way that i can change the image thumbnail when sharing a link? i wanna make my link personalized

  • @tapelongwenya
    @tapelongwenya 2 месяца назад

    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

  • @elpablitorodriguezharrera
    @elpablitorodriguezharrera 5 месяцев назад +2

    Can you make it connected to GPT-4 and other text-to-image like Fooocus?
    It'd be super nice having Midjourney killer.

  • @easycodelab
    @easycodelab 4 месяца назад +9

    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??

    • @jeethendrabalaji8697
      @jeethendrabalaji8697 4 месяца назад

      You would have to override env variable, change load_dotenv() to load_dotenv(override=True)

    • @hallohoi7741
      @hallohoi7741 2 месяца назад

      Did you find a way to solve this issue? i'm facing the same problem right now

    • @anubiss264
      @anubiss264 2 месяца назад

      @@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

    • @josealfonsx
      @josealfonsx 28 дней назад

      @@hallohoi7741 did you? I'm still stuck in this part.

    • @josealfonsx
      @josealfonsx 28 дней назад

      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.

  • @prathamnotorious8685
    @prathamnotorious8685 5 месяцев назад

    Do we necessarily need a real business account ? I don't have a business email ... What can I do?

  • @arjunc7370
    @arjunc7370 4 месяца назад

    Is there any request limitation while using meta APIs?

  • @user-df6xo7wz2m
    @user-df6xo7wz2m Месяц назад +1

    sir , my webhook is working and credintials are verified on local but on server its not working

  • @jilojamba
    @jilojamba 6 месяцев назад +1

    can we integrate this on websites Dave?

  • @blueriddlemonster
    @blueriddlemonster 5 месяцев назад

    Followed every step, but it keeps giving me the 403 error. any idea on how to resolve this? Read a lot on Stack overflow, debugged, but seems that I am really missing a step here ;-)

  • @FredMud
    @FredMud 2 месяца назад

    How do I get this to work for chatgpt vision functionality? For example I would like a WhatsApp user to be able to send an image on WhatsApp to the gpt, and the gpt responds according to whatever is in the image

  • @SillyZillyMe
    @SillyZillyMe 6 месяцев назад +1

    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
      @daveebbelaar  6 месяцев назад

      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
      @sealandland3959 5 месяцев назад

      ​@@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

  • @nguhprince7417
    @nguhprince7417 5 месяцев назад

    I'm having an issue creating the Meta Business Account. I already have one linked to my Facebook profile but the developers page still asks me to create one in order to complete the onboarding process.

  • @danielrock676
    @danielrock676 5 месяцев назад

    I configured the webhook but when I send messages to the test number nothing happens

  • @juicetin942
    @juicetin942 4 месяца назад

    Thanks

  • @Iker44insua
    @Iker44insua 2 месяца назад

    Hi Dave, is it possible to find a. Easier way??

  • @getkindlr
    @getkindlr 5 месяцев назад

    Awesome!!

  • @aliabdou7983
    @aliabdou7983 22 дня назад

    But what if i want all users to contact my bot not only the number we did setup ?

  • @dixithm.g.d7998
    @dixithm.g.d7998 5 месяцев назад

    Hey Can anyone tell me how I can add buttons tooo ?

  • @user-tg4vj5ou8m
    @user-tg4vj5ou8m 5 месяцев назад

    Basically learning that this entire provided code base breaks constantly on MacOS because it has issues with homebrew installed python.

  • @manoranjansahu1680
    @manoranjansahu1680 2 месяца назад +1

    Thanks Dude. Can we add that bot in my whatsapp group and the bot able to do send messages in group

  • @varelaseb
    @varelaseb 5 месяцев назад +4

    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
      @Cheikna98 5 месяцев назад +3

      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

    • @user-tg4vj5ou8m
      @user-tg4vj5ou8m 5 месяцев назад

      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

    • @user-tg4vj5ou8m
      @user-tg4vj5ou8m 5 месяцев назад +1

      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

    • @b3armonk
      @b3armonk 2 месяца назад

      @@user-tg4vj5ou8m 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

    • @chrisquinn3377
      @chrisquinn3377 2 месяца назад

      ​@@b3armonkcan you provide more detail, do you have a web server? And do I need to add a .venv to the code

  • @ajojotank3448
    @ajojotank3448 4 месяца назад

    Since Whatsapp group api is depreciated is there any way to make a group and add 2 users and have the bot facilitate the conversation? Does anyone have any information on this. Any help would be greatly appreciated :)

  • @mehdizoghi-ob1dm
    @mehdizoghi-ob1dm 5 месяцев назад +1

    Hi,
    i get this error while trying to add callback url . Do you have any idea? Thanks :
    "message": "Invalid signature"

    • @chrisquinn3377
      @chrisquinn3377 2 месяца назад +1

      I am getting this error aswell did you figure it out?

  • @paritoshpandey5705
    @paritoshpandey5705 Месяц назад +1

    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 ?

  • @buildrshub
    @buildrshub 2 месяца назад

    can we make buttons also?

  • @user-hd4gu6be9e
    @user-hd4gu6be9e 5 месяцев назад

    does it work for whatsapp business?

  • @chhavimohitkar2284
    @chhavimohitkar2284 4 месяца назад

    Can we make it multilingual?

  • @luisjaimemartinez6848
    @luisjaimemartinez6848 4 месяца назад

    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?

    • @mominali8397
      @mominali8397 Месяц назад

      Try not using the .env to load the enviroment variables, instead defin them in the same file as were the code is running.

  • @servernajmi1354
    @servernajmi1354 2 месяца назад

    already have dashboard front end?

  • @uzairleo2910
    @uzairleo2910 6 месяцев назад +16

    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
      @IbrahimKhan-tw5bf 5 месяцев назад +2

      He did make an AI chatbot if you went through the end of the video

    • @sandeepv2441
      @sandeepv2441 4 месяца назад +1

      Add custom function for response . And define there ur prompts

  • @traggerosbourne6877
    @traggerosbourne6877 6 месяцев назад

    Very interesting 😅

  • @user-il1mb7cd8d
    @user-il1mb7cd8d 3 месяца назад +3

    When I try to verify my webhook, I get the following error "The callback URL or verify token couldn't be validated. Please verify the provided information or try again later." and a message on my ngrok command line interface saying GET / 502 Bad Gateway. Can anyone please suggest a way to solve it?

    • @jotten8587
      @jotten8587 17 дней назад

      i have the same problem, did you fix it?

    • @kalyangoud8227
      @kalyangoud8227 3 дня назад

      Host your application in render and use the api end point for verification

  • @user-rt1kv6su5o
    @user-rt1kv6su5o 4 месяца назад

    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 🙂

  • @ferasalfarsi897
    @ferasalfarsi897 4 месяца назад

    Please, zoom in , the font is very small to read and see.

  • @mauricioknob592
    @mauricioknob592 2 месяца назад

    Is it possible to make this bot work on a whatasapp group?

  • @iamabubakarabdullah
    @iamabubakarabdullah 3 месяца назад

    How to send video messages??

  • @jeevanjanaratnam3543
    @jeevanjanaratnam3543 17 дней назад

    Is it possible to do this in a WhatsApp group?
    I have a WhatsApp group with 5 people, including me.
    If anybody writes a message with, for example, 'help me,' there should be an automatic reply to the group.
    Is that possible? Any guide?

  • @aidanaualikhan4102
    @aidanaualikhan4102 День назад +1

    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?

  • @letis7766
    @letis7766 6 месяцев назад +1

    bro, it says forbidden when connecting webhook error 403, have you solved that problem or I am doing something wrong?

    • @SairamreddyVintha-om7tg
      @SairamreddyVintha-om7tg 3 месяца назад

      Even I am running in to same problem , Did it solve for you ?If so please share the solution

    • @ShriNanduKi
      @ShriNanduKi 3 месяца назад

      @@SairamreddyVintha-om7tg pls add the verification token u mention in the webhook setup into the .env file n check

    • @SairamreddyVintha-om7tg
      @SairamreddyVintha-om7tg 3 месяца назад

      @@ShriNanduKi Thank you it started working. This time after all the steps running into a different issue
      File "C:\Program Files\Python311\Lib\ssl.py", line 517, in wrap_socket
      return self.sslsocket_class._create(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Program Files\Python311\Lib\ssl.py", line 1075, in _create
      self.do_handshake()
      File "C:\Program Files\Python311\Lib\ssl.py", line 1346, in do_handshake
      self._sslobj.do_handshake()
      ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)
      The above exception was the direct cause of the following exception:

  • @alfieblake2646
    @alfieblake2646 3 месяца назад

    Please help me I am trying to the run the “call the function” paragraph to do a test text but I then end up getting errors which say no module named “requests”

    • @theunaffordablemedia
      @theunaffordablemedia 3 месяца назад

      It means that you don't have the "request" module installed on your local machine and it's necessary ti run the app.
      In your invite, type "pip install requests" and it will install it. You're good to go then.

  • @esmaiyigunler3801
    @esmaiyigunler3801 3 месяца назад

    We are getting the 404 found error error. No matter what we tried, it didn't work. Could it be due to a problem with our Facebook or WhatsApp line? I would be very happy if anyone got the error and explained how they solved it.

  • @slaygirlslay4952
    @slaygirlslay4952 3 месяца назад

    Please help me I am trying to run the "call the function" paragraph to do a test text but I get errors saying no module named "requests"?

    • @owaiswajid6853
      @owaiswajid6853 Месяц назад

      You need to install all the dependencies
      run this on your terminal - pip install requests

  • @TheStRaX_
    @TheStRaX_ 6 месяцев назад

    Hey admij, can you upload video on how to upload flask app?

    • @daveebbelaar
      @daveebbelaar  6 месяцев назад

      Check out this video: ruclips.net/video/fTEwGcPqLa8/видео.html

  • @ElectroCoderEC
    @ElectroCoderEC 2 месяца назад

    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??

    • @b3armonk
      @b3armonk 2 месяца назад

      just edit the code so all numbers that comes in are from people who text to you.

  • @phoebebright
    @phoebebright Месяц назад +2

    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-christopheyervant430
      @jean-christopheyervant430 20 дней назад +1

      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-christopheyervant430
      @jean-christopheyervant430 20 дней назад

      Region United States (us)
      I found the solution in the ngrok.yml but still US not working

    • @3101199
      @3101199 21 час назад

      please explain how to not use ngrok domain! :)

    • @phoebebright
      @phoebebright 19 часов назад

      @@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.

  • @mizanurrahaman6786
    @mizanurrahaman6786 6 месяцев назад

    can this ai use in whatsapp group?

  • @AlexisSambrano-sf3nx
    @AlexisSambrano-sf3nx Месяц назад

    siempre que creo un portafolio comercial me restringen esa cuenta al momento de crearlo

  • @jvp8447
    @jvp8447 3 месяца назад

    I love you

  • @leooliveira8348
    @leooliveira8348 4 месяца назад

    'error': {'message': "Unsupported post request. Object with ID 'messages' does not exist, cannot be loaded due to missing permissions,? somebody ?

  • @wongr643
    @wongr643 6 месяцев назад +3

    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
      @daveebbelaar  6 месяцев назад +1

      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
      @xxx182 6 месяцев назад +1

      Having the same issue. Tried to deploy to Google app engine and got the same. Anyone was able to fix it?

    • @aureliengruchy7769
      @aureliengruchy7769 6 месяцев назад +2

      Did you solve the issue ? I have the same problem where i don't get the X-Signature-256 in the request header ...

    • @SillyZillyMe
      @SillyZillyMe 6 месяцев назад

      @@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
      @SillyZillyMe 6 месяцев назад +3

      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.

  • @itskittyme
    @itskittyme 6 месяцев назад

    is this allowed ? i'd love to make a bot to have my friends chat with it for fun and maybe add functionalities to it like agenda, calendar, stuff like that,
    but I'm scared of getting a ban and losing my contacts

    • @daveebbelaar
      @daveebbelaar  6 месяцев назад

      It's definitely allowed but you have to turn your WhatsApp phone number into a business number if you want to do this with your own number. You might want to get a different number for this to experiment.

    • @itskittyme
      @itskittyme 6 месяцев назад

      ok thank you for the tips!@@daveebbelaar

  • @franpalokaj
    @franpalokaj 4 месяца назад

    Oof... I already got stuck on the first 3 minutes of the tutorial. Facebook is not allowing me to verify my business account, which is making me unable to create a Whatsapp app. I get the following error: "Your business is prohibited from advertising, including claiming apps."
    Did anyone encounter this and found a solution for it?

    • @leooliveira8348
      @leooliveira8348 4 месяца назад +1

      I sent a photo of my ID, after that they gave me access

    • @franpalokaj
      @franpalokaj 4 месяца назад

      Thanks for the tip! @@leooliveira8348

  • @GarPaul
    @GarPaul 5 месяцев назад

    Facebook is blocked in my country. I use VPN to access it. And it tells me "your business is prohibited from advertising, including claiming apps" That's when I add the business name.
    How can I bypass this challenge?

    • @b3armonk
      @b3armonk 2 месяца назад

      what country are you from? Is your country actively using whatsapp?

  • @arilkurniawan4622
    @arilkurniawan4622 6 месяцев назад

    uh why i always got no module named request error

    • @daveebbelaar
      @daveebbelaar  6 месяцев назад

      Run: pip install request

    • @arilkurniawan4622
      @arilkurniawan4622 6 месяцев назад

      @@daveebbelaar i already try that but still getting the error message i even try reinstalling it but still
      Edit: nvm forget about that now im getting error 401 invalid Oauth access token

  • @samsontan1141
    @samsontan1141 6 месяцев назад +4

    why do i get 403 forbidden?

    • @SillyZillyMe
      @SillyZillyMe 6 месяцев назад +4

      Refer to one of my previous comments. I modified something in the views.py file and was able to get around this issue.

    • @varelaseb
      @varelaseb 6 месяцев назад

      I'm sorry, what comment is that? I'm not seeing it@@SillyZillyMe but going into views.py it seems like everything lines up. current_app.config seems to be pointing to the right token.
      Been stuck here for a few hours so would deeply appreciate the help

    • @GlobalCommunityMinersForum
      @GlobalCommunityMinersForum 6 месяцев назад

      hi i cant see your previous comment and would love to know what you midified in the vies.py file thank you!
      @@SillyZillyMe

    • @blueriddlemonster
      @blueriddlemonster 5 месяцев назад +1

      @@SillyZillyMe What did you modify? Thanks ;-)

    • @mista_ia
      @mista_ia 5 месяцев назад +1

      @@SillyZillyMe we did not find that comment, please, how ?

  • @rolandohernandez8358
    @rolandohernandez8358 6 месяцев назад

    Is the API paid and with quotas?

  • @python-tip-israel
    @python-tip-israel 4 месяца назад

    your api credentials expose in start of the video

    • @daveebbelaar
      @daveebbelaar  4 месяца назад

      Lol, at what timestamp? If so, it's probably a temp token I use for tutorials though.

  • @Alice8000
    @Alice8000 2 месяца назад +1

    I use arc browser. you copied me bro.

  • @user-tg4vj5ou8m
    @user-tg4vj5ou8m 5 месяцев назад +1

    500 errors later I am at minute 10 of this video :(

  • @aubisokahaftungsbeschrankt6406
    @aubisokahaftungsbeschrankt6406 3 месяца назад

    Sorry, I dont want to be depending on paid services....

    • @ElectroCoderEC
      @ElectroCoderEC 2 месяца назад

      lol. why do you want to free everything??