Skip to contentSkip to navigationSkip to topbar

COVID-19 Vaccine Hesitancy Chatbot

Created by: Twilio
  • Studio
  • SMS
  • JavaScript
  • COVID use case
  • Social Impact
  • Quick Deploy
(information)

Info

Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number(link takes you to an external page) or Toll-Free number(link takes you to an external page) before you use this template.

Interactive chatbots have been studied to have a positive impact(link takes you to an external page) on COVID-19 vaccine attitudes and intentions. For organizations working to increase vaccine confidence in populations you serve, this template provides an interactive chatbot platform that can answer individuals' vaccine-related questions.

Individuals ask their questions by sending an SMS to a pre-configured phone number, and are responded to by a FAQ chatbot which is built using trusted data sources for answers. The chatbot is powered by Google Dialogflow ES and Twilio Studio flow connects the chatbot with Twilio's Programmable SMS channel. The application can be extended to other digital channels such as Voice, Whatsapp or Webchat.

The chatbot template includes 2 pre-built chatbot agents:

Prerequisites:

  1. Configure Google Cloud Platform and Generate JSON Auth Key
    Follow this guide(link takes you to an external page) for step-by-step instructions on how to do this.

    This template uses Google Cloud Platform and Dialogflow to power the conversational chatbot agent that interacts with the user. You will need to setup a Google Cloud project, enable the Dialogflow API, and generate a JSON authentication key from a GCP Service Account for Twilio to use to interact with Dialogflow.

  2. Create a Dialogflow Chatbot Agent
    Follow this guide(link takes you to an external page) for step-by-step instructions on how to do this.

    The conversational chatbot is powered by an integration between Twilio and Google Dialogflow, a natural language understanding platform used to design and integrate a conversational user interfaces. You may import the pre-built Dialogflow chatbot agents included in this repository, or configure your own chatbot agent.

  3. Confirm completion of prerequisite steps
    Before moving onto the Quick Deploy section, please make sure the following is true:

    1. You have an active Google Cloud Project with the Dialogflow API enabled
    2. You have a JSON authentication key associated with a Service Account from your Google Cloud Project, and you have the file handy (you'll need it below)
    3. You have created a Dialogflow agent and configured it either using one of the pre-built agents or have created your own
    vaccine-icon.png.
Report this template(link takes you to an external page)
Quick Deploy to TwilioGet CodeUse Twilio CLI
Launch and test this app in a few minutes with Quick Deploy. No server needed. Quick Deploy will automatically configure and deploy this app using Twilio Functions. Learn more about Twilio Functions(link takes you to an external page)
  1. Log in to Twilio

    Access your Twilio account to get started.

    Checking for existing account...

  2. Get a Twilio phone number

    Your app requires a Twilio phone number to operate, this is your application's source number to receive messages or calls.

    You will get a US number that is configured for this application. You can change this or port over an existing number later. International number regulations(link takes you to an external page)
  3. Google Cloud Project ID

    Your Google Cloud Project ID

  4. Google Application Credentials

    A JSON key file for your Google service account. If deploying via CodeExchange, paste the JSON contents of the service account key below.

  5. Language Code

    Language to be used by chatbot. Defaults to U.S. English (en-US). Do not change if using pre-build chatbot agents. If changing, set to Dialogflow language tag (e.g. es).

  6. Click the button below to deploy your app

    This will use the details entered above to deploy your application to Twilio Functions.

    You will be able to view the application in the browser and edit it using the Functions UI.

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2025 Twilio Inc.