Sample Parrot Chat Bot in Core PHP
Sample Parrot Chat Bot Source Code & Example in Core PHP
Below is a sample parrot chat bot source code written in Core PHP , it do the following actions when receiving a messages from a whatsapp number
- Extract the messages from the webhook.
- Construct a reply with current date and message then sends back to the sender.
- Sending all the parameters extracted from the webhook to the email address configured.
The below sample code is contributed by our exclusive Channel Partner based in India , Achariya Techno Solutions.
<?php //Please replace email details with your email to receive emails //$_REQUEST having all incoming message details mail('email@example.com','Picky-Webhook-Test',print_r($_REQUEST,true),'From:firstname.lastname@example.org'); //Constructing reply with System Current Date & Time along with the incoming message $data['message-out'] = date('d-m-Y h:i:s A',time()).' <=> '.$_POST['message-in']; //Optional field if you want to set delay for giving reply $data['delay'] =0; //JSON Encoding for sending the reply back to Picky Assist echo json_encode($data); ?>
Achariya Techno Solutions (www.smsaachariya.com) is a Telecom VAS company providing complete solution for all your communication needs , we can provide tailor made chat bots based on the customer requirements , below are the list of chat bot we have delivered to our clients.
- Chat Bot for Ordering a Product – Bot commerce
- Chat Bot for Capturing Leads (All Industries)
- Chat Bot for Capturing Requirements (All Industries)
- Chat Bot for Book a Table – Restaurant
- Chat Bot for Event / Venue Bookings
- Chat Bot for Collecting Feedback – Hotel, Restaurants & Resorts
- Chat Bot for Appointments – Hospital , Salon , SPA , CA , Astrologer
- Chat Bot for Support Desk
- Chat Bot for Laundry Pickup
- Chat Bot for Car Service / Wash
- Chat Bot for Book A Cab / Driver
- Chat Bot for Book A Technician – House Cleaning / AC Repair Service
- Chat Bot for Loan / Insurance Lead Generation
- Chat Bot for Survey – Political Parties / TV / Radio
- Chat Bot for Tour Companies
- Chat Bot for Builders / Real Estate
- Chat Bot for Real Estate Brokers
- Chat Bot for Educational Institutes
- Chat Bot for 2 & 4 Wheeler Showrooms – Lead Generation , Book Test Drive
- Chat Bot for Quiz & Contests
- Chat Bot for Logistic Companies – Track Order , Feedback
We can also build and deploy Advance AI (Artificial Intelligence) & NLP (Natural Language Processing) powered Chat Bot with Google Dialogflow
We support Google Drive, Google Form Integration with Picky Assist Chat Bot, i.e our chat bot can read , edit, insert, delete data from your Google Drive and perform dynamic actions.
Contact email@example.com for getting best quote for your next Chat Bot