RESEARCH
INTERNSHIP
PRESENTATION
STAGE 2 EVALUATION
Name: Ishika Singh
PRN: 20210802063
B-Tech CSE TY
Integrating a chatbot with
WhatsApp Api
WhatsApp API Details:
1. Authentication
Use of API tokens for authentication.
How to generate and manage tokens securely.
2. Sending Messages
Supported message types: text, images, documents, etc.
Structured messages using templates (buttons, lists).
3. Receiving Messages
Webhook setup for real-time message reception.
Polling methods as an alternative for message retrieval.
4. Interactive Features
Handling user responses: buttons, quick replies.
Implementing custom actions based on user interactions.
5. Templates and Message Formatting
Guidelines for using pre-approved message templates.
Formatting options for rich media and structured content.
6. API Rate Limits and Guidelines
Understanding and adhering to API rate limits.
Compliance with WhatsApp Business API policies.
Telegram API Details:
1. Bot Authentication
Obtaining and using bot tokens for API access.
Secure handling and storage of API tokens.
2. Message Handling
Supported message types: text, multimedia, locations, etc.
Commands and inline queries for user interaction.
3. Webhooks and Polling
Setting up webhooks for real-time updates.
Polling method for fetching updates in a controlled manner.
4. Commands and Inline Queries
Defining custom commands for bot interaction.
Handling inline queries for dynamic responses.
5. Bot Administration
Managing bot settings: privacy, profile info.
Bot API methods for administrative tasks.
6. Security and Compliance
Data encryption and privacy considerations.
Compliance with Telegram Bot API usage policies.
Creating Bots on WhatsApp and Telegram
WhatsApp Business API:
• Requirements: Verified WhatsApp Business Account linked with
Facebook Business Manager.
• Steps: Apply for API access, obtain API credentials (API Key, API
Secret), set up webhooks, develop bot logic as per API guidelines.
• Testing and Deployment: Use WhatsApp's sandbox for testing,
then request production access.
Telegram Business API:
• Requirements: Telegram account for bot creation via [@BotFather]
• Deployment: Choose webhooks or polling for message handling,
test in Telegram's development environment
• Steps: Use ‘/newbot’ command to create bot, obtain API token from
BotFather, develop bot using Telegram Bot API methods.
Current and Ultimate Task:
Currently, I am experimenting with these APIs through a sample
project.
Once I have successfully completed this task, my ultimate objective is
to analyze methods for integrating these APIs with our company's
existing AI chatbot infrastructure.
THANKYO
U