This document provides an overview of a presentation on integrating ChatGPT and WhatsApp APIs with MuleSoft. The key points covered include:
- An introduction of the speaker and agenda which includes discussing ChatGPT API, WhatsApp API, integrating them with MuleSoft, and a demo.
- Descriptions of ChatGPT and its capabilities for natural language processing.
- Details on connecting to the ChatGPT and WhatsApp APIs, including available endpoints and authentication.
- An example integration architecture showing how MuleSoft can be used to connect backend systems to the ChatGPT and WhatsApp APIs.
- A short demo of a MuleSoft integration with
2. 2
● 15+ years of Experience into ERP Integrations.
● Working as Principal Architect @Slalom LLC.
● Proud Community Member, MuleSoft Ambassador
Quick Introduction
Neeraj Kumar- Co-host NYC
● 25+ years of Information Technology Experience
● Working as an Independent Integration Consultant
● Proud Community Member, MuleSoft Ambassador
Shivani Marrero Co-host NYC
3. Safe Harbor Statement
• Both the speaker and host are organizing this meet up in individual capacity only.
We are not representing our companies here.
• This presentation is strictly for learning purpose only. Organizer/Presenter do not
hold any responsibility that same solution will work for your business
requirements also.
• This presentation is not meant for any promotional activities.
4. ●About the Speaker :
Introductions
Shubham Chaurasia
MuleSoft Ambassador
Professional Integration Developer
Billennium India
2.5+ years of Experience in Integrations
MCD L1, MCD L2, MCPA, MCIA Certified (5x Mule)
Salesforce, AWS, GCP, Azure, Workato Certified
Mulesoft Meetup Leader | Mentor | Blogger | Speaker
AWS Community Builder
Gamer By Heart | Loves to Compete
https://www.linkedin.com/in/shubhamchaurasia1/
https://medium.com/@myid535
4
5. 5
● ChatGPT API & Connector
● WhatsApp API
● MuleSoft Integration with ChatGPT &
WhatsApp
● Demo
● Q&A session
Agenda
6. 6
● ChatGPT is a state-of-the-art natural language processing (NLP) model developed
by OpenAI.
● It is a variant of the popular GPT-3 (Generative Pre-trained Transformer 3) model,
which has been trained on a massive amount of text data to generate human-like
responses to a given input.
● ChatGPT is its ability to generate responses that are consistent with the context of
the conversation
● ChatGPT is also capable of performing a range of other NLP tasks, such as
language translation, text summarisation, and sentiment analysis
● Unlike traditional NLP models that rely on hand-crafted rules and manually labeled
data, ChatGPT uses a neural network architecture and unsupervised learning to
generate responses
What is ChatGPT
7. ChatGPT vs ChatGPT Plus
● ChatGPT Plus had a
Turbo mode that was
faster than the one
we have in the free
plan
● Access to GPT-4
7
● Training Data: ChatGPT is trained on a large corpus of text data, while ChatGPT+ is
trained on an even larger and more diverse dataset, including more languages and
more varied types of text.
● Model Size: ChatGPT+ has a larger model size, meaning it has more parameters and
can capture more complex relationships between words and concepts.
● Training Techniques: ChatGPT+ uses more advanced training techniques, such as
curriculum learning and mixup, to further improve its performance.
8. Limitations of ChatGPT
● It is a large and complex model, which makes it resource-intensive to run
● It is a generative model, which means that it is not always able to provide accurate
answers to specific questions
● Like all NLP models, is limited by the quality and quantity of the data it has been
trained on
● The model is not yet able to ask clarifying questions when user input is ambiguous
and instead tries to guess user intent
● Its resource-intensive nature and potential for irrelevant or nonsensical responses
make it less than ideal for certain applications
8
12. ChatGPT API
● Completions:- Given a prompt, the model will return one or more predicted
completions, and can also return the probabilities of alternative tokens at each
position.
● Models:- List and describe the various models available in the API. Understand what
models are available and the differences between them
● Chat:- Given a chat conversation, the model will return a chat completion response.
● Images:- Given a prompt and/or an input image, the model will generate a new image.
● Audio:- Learn how to turn audio into text
● The OpenAI API uses API keys for authentication. Check API Keys page to retrieve
the API key you'll use in your requests.
● The API is priced at $0.002 per 1K tokens. You have free credit to use, though
12
14. 14
WhatsApp Cloud API
WhatsApp Cloud
API is the cloud
version of
WhatsApp
Business API,
which allows
businesses &
developers to
build on top of
WhatsApp to
customize their
experiences and
respond to
customers quickly
& easily.
It's quick &
easy because
businesses
can get direct
approval for
WhatsApp
Cloud API
from
Facebook.
15. 15
● The WhatsApp Cloud API allows small and medium businesses to communicate
with their customers at scale.
● Using the API, businesses can build systems connecting thousands of customers
with agents or bots, enabling programmatic and manual communication.
● Additionally, you can integrate the API with numerous backend systems, such as
CRM and marketing platforms.
● Businesses looking to use the API have two hosting options: On-Premises and
Cloud API.
WhatsAPP Cloud API
19. 19
● Broadcast to Unlimited Users
● Use WhatsApp Business on Multiple Devices
● Automate Notifications
● Install WhatsApp Chatbots
● Get Verified Green Tick on WhatsApp
● Send Messages with clickable buttons
Pros
20. Cons
● With WhatsApp Cloud API, businesses will be able to automate their customer
communication on just WhatsApp.
● With WhatsApp Business API through BSPs such as Verloop.io, businesses
can integrate all communication channels in one place and get a unified view of
all customer queries.
● BSP Provides services that enhance a customer’s experience on the WhatsApp
chatbot, which are not available through the WhatsApp Cloud API. These
include
• AI-powered FAQ
• Agent Assist
• Dashboard
20
21. Message Templates
● WhatsApp message templates are specific message formats that businesses use
to send out notifications or customer care messages to people that have opted in
to notifications. Messages can include appointment reminders, shipping
information, issue resolution, or payment updates.
Currently, you can send the following template types:
● Text-based message templates
● Media-based message templates
● Interactive message templates include interactive buttons
• Call-to-Action — This allows your customer to call a phone number and visit a
website.
• Quick Reply — This allows your customer to return a simple text message.
These buttons can be attached to text messages or media messages. Once your
interactive message templates have been created and approved, you can use them in
notification messages as well as customer service/care messages. 21
22. 22
● Get Real-time Feedback for your Products & Services
● Provide order & delivery updates on WhatsApp
● Order Confirmation + Upsell
● Send messages with Quick Reply Buttons & Call to Actions
● Send product details with smart buttons
● Install AI-enhanced WhatsApp Chatbot & keep your business live 24x7
● Reduce Application Dropoffs & abandoned carts by automating reminders
Use Cases
23. Webhooks
Subscribe to Webhooks to get notifications about messages your business receives
and customer profile updates.
Whenever a trigger event occurs, the WhatsApp Business Platform sees the event and
sends a notification to a Webhook URL you have previously specified. You can get two
types of notifications:
● Received messages: This alert lets you know when you have received a message.
These can also be called "inbound notifications" throughout the documentation.
● Message status and pricing notifications: This alert lets you know when the status of
a message has changed —for example, the message has been read or delivered.
These can also be called "outbound notifications" throughout the documentation.
23
24. Webhook SetUp
Setting up any Webhook requires you to:
● Create an endpoint on a secure server that can process HTTPS requests.
● Configure the Webhooks product in your app's App Dashboard.
Your endpoint must be able to process two types of HTTPS requests: Verification
Requests and Event Notifications.
Since both requests use HTTPs, your server must have a valid TLS or SSL certificate
correctly configured and installed. Self-signed certificates are not supported.
If any update sent to your server fails, we will retry immediately, then try a few more
times with decreasing frequency over the next 36 hours. Your server should handle
deduplication in these cases. Unacknowledged responses will be dropped after 36 24