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

  1. Extract the messages from the webhook.
  2. Construct a reply with current date and message then sends back to the sender.
  3. 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.


//Please replace email details  with your email to receive emails
//$_REQUEST having all incoming message details

//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);



About Contributor 

Achariya Techno Solutions ( 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.

  1. Chat Bot for Ordering a Product – Bot commerce
  2. Chat Bot for Capturing Leads (All Industries)
  3. Chat Bot for Capturing Requirements (All Industries)
  4. Chat Bot for Book a Table – Restaurant
  5. Chat Bot for Event / Venue Bookings
  6. Chat Bot for Collecting Feedback – Hotel, Restaurants & Resorts
  7. Chat Bot for Appointments – Hospital , Salon , SPA , CA , Astrologer
  8. Chat Bot for Support Desk
  9. Chat Bot for Laundry Pickup
  10. Chat Bot for Car Service / Wash
  11. Chat Bot for Book A Cab  / Driver
  12. Chat Bot for Book A Technician  – House Cleaning / AC Repair Service
  13. Chat Bot for Loan / Insurance Lead Generation
  14. Chat Bot for Survey – Political Parties / TV  / Radio
  15. Chat Bot for Tour Companies
  16. Chat Bot for Builders / Real Estate
  17. Chat Bot for Real Estate Brokers
  18. Chat Bot for Educational Institutes
  19. Chat Bot for 2 & 4 Wheeler Showrooms – Lead Generation , Book Test Drive
  20. Chat Bot for Quiz & Contests
  21. 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 for getting best quote for your next Chat Bot

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

June 6, 2019

Adding Widget Into WordPress

Adding Widget Into WordPress In this guide we will show how can add Picky Assist Chat Widget into a WordPress site in less than 5 minute. Watch Video Login into your WordPress Admin Account From the sidebar menu locate “Appearance” menu and click on it and from sub menu select “Editor” Editor may prompt for

May 29, 2019

Step By Step Getting Start Guide

Step By Step Getting Start Guide This guide will help you to get started with picky assist services , before getting start you must install and configure the picky assist bridge mobile app correctly in your mobile phone where the whatsapp, sms and call automation is required. You can refer following links , if you