Thursday, November 18, 2021

Building chatbot resraech links with python and C#

 https://jd-bots.com/2021/07/13/create-a-whatsapp-qna-maker-bot-using-power-automate-and-twilio-part-1/

https://docs.wati.io/reference/get_-serverurl-api-v1-getmedia

https://www.twilio.com/docs/whatsapp/api#conversational-messaging-on-whatsapp

https://rodic.fr/blog/python-chatbot-1/

https://jd-bots.com/2020/09/13/connect-bot-framework-to-db-part-1-read-data-from-db-using-entity-framework/

https://www.twilio.com/blog/build-a-whatsapp-chatbot-with-python-flask-and-twilio

https://www.geeksforgeeks.org/building-whatsapp-bot-on-python/

----------------------------------*********************----------------------------------

Simple console application with sending message on whats app using twilio.com

 class Program

    {

        static void Main(string[] args)

        {

            // Find your Account SID and Auth Token at twilio.com/console

            // and set the environment variables. See http://twil.io/secure

            //string accountSid = Environment.SetEnvironmentVariable("TWILIO_ACCOUNT_SID", "AC49cf068b85003fcb3160d14c101453cd");

            //string authToken = Environment.GetEnvironmentVariable("c5270daacbe8aabd40e0b1b8febee06a");


            string accountSid = "AC49cf068b85003fcb3160d14c101453cd";

            string authToken = "c5270daacbe8aabd40e0b1b8febee06a";


            TwilioClient.Init(accountSid, authToken);


            var message = MessageResource.Create(

                from: new Twilio.Types.PhoneNumber("whatsapp:+14155238886"),

                body: "Hello, there!",

                to: new Twilio.Types.PhoneNumber("whatsapp:+919355036914")

            );


          

            Console.WriteLine(message.Sid);


        }

    }


https://www.twilio.com/docs/whatsapp/api#conversational-messaging-on-whatsapp

-------------------******************---------------------------------------


First sign Up in twilio.com if you don't have account and use free version for 90 days.

>After sign in, Go to develop

>Click on develop

>Click on messaging

>Click on try it out

>Click on send a whats app message

>Click on (click here) link (screenshot below)

>Than write join worry-development to whats app
-------------------------**************************------------------------------------

>Click on https://console.twilio.com/ to see the Account ID and Token.
or You can goto, Account and Click on General Settings (screenshot below)


----------------------------************************-------------------------------------

>Also we can see the what's app message that we send.(see the screenshot below)
>By Clicking on Monitor and than click on messaging.
----------------------------*****************************--------------------------------------------
To see the URL when message comes in in twilio.com
>Click on develop>Messaging>settings>whatsapp sandbox settings (screenshot below)

 


No comments:

Post a Comment