AI hub
Vocalize

Vocalize

EARLY ACCESS

Vocalize is an AI-powered voice gamification tool that makes lead collecting a fun, competitive experience for end users. Instead of asking them to fill out forms with their information, invite them to play a game and compete for a high score.

To opt in to the game, end users must provide basic information such as their name and company. Save this information in People for lead generation.

Note

Currently, Vocalize is available for WhatsApp chatbots.

Prerequisites

Contact your Infobip account manager to activate AI features in your account.

Why use Vocalize

  • Engage end users: Gamification is more engaging and interactive than data collections methods such as filling out forms.
  • Generate leads: If the end user agrees to play the game, collect user information such as name and company, and save this information to create a lead.

Use Vocalize with Infobip solutions

Use Vocalize with the following Infobip solutions:

How Vocalize works

How gamification works

End users repeat the configured phrase by following the specified instructions and aligning with the displayed image.

AI scores their voice response based on similarity to the phrase and image. The closer the response is to the phrase and the instructions, the higher their score. The score is added to a leaderboard.

You can even offer prizes for top ranks.

User interaction flow

End users can interact with the Vocalize tool through an Infobip solution such as an Answers chatbot.

  1. An end user contacts your WhatsApp chatbot.
  2. The chatbot invites them to play a game.
  3. If the end user agrees to play, the chatbot asks them for basic details such as name and company.
  4. The chatbot saves this information in People in either a new or existing Person profile as applicable.
  5. The chatbot asks the end user to say the configured phrase and provides instructions.
  6. The end user sends a voice message containing the phrase.
  7. The chatbot uses AI to score how close the end user's message is to the configured phrase and the instructions.
  8. The chatbot sends feedback to the end user and includes their score in a leaderboard.

Example

The phrase is: I love Berlin.

The instructions are: Record a voice message saying I love Berlin, but it should resemble the Berlin skyline.

An image of the Berlin skyline is displayed to guide the end user.

The end user repeats this phrase and uses vocal pitch, rhythm, and pauses to resemble the peaks, dips, and spaces in the Berlin skyline.

Image that shows how Vocalize works

How to use Vocalize

  1. Create a Vocalize campaign through Postman.
  2. To make the campaign available to end users, add it to an Answers chatbot.

Create a Vocalize campaign through Postman

Create a campaign that uses Vocalize.

Prerequisites

  • Vocalize: Enable Vocalize in your Infobip account. For more information, contact your Infobip account manager.

  • API keys: The following API keys:

  • Keyword: Determine the keyword or phrase to use in the campaign. Example: I love Infobip.

  • API builder: Postman (opens in a new tab) to send requests to the Vocalize API.

Prepare the image

Prepare the image to use in the campaign. For Vocalize to work, the image must follow these guidelines:

  • The image must have a white background and black foreground.
  • The object must be at the center of the image.
  • For the best results, the image must be symmetrical.
  • Image must be in .png or .jpeg format.

The following are examples of the types of images:

  • City skylines
  • Mountain or canyon ridgelines
  • Forest edges and tree lines
  • Ocean waves, sand dunes, glacier crests
  • Human-made shapes on the horizon such as cranes, wind turbine farms, roller coasters
  • Rows of everyday objects such as books or bottles on a shelf, LEGO bricks

The following are examples of images:

Image of a mountain range

Image of a mountain range

Image of a tree line

Image of a mountain range

Image of a city skyline

Image of a mountain range

Create the campaign

  1. Use the following template to create a Vocalize campaign.


    Download the template (opens in a new tab)

  2. Import the template in Postman.

  3. Go to the template that you imported.

  4. In the Overview tab, enter a description for the campaign.

    Image of the Overview tab
  5. Select the Create new campaign endpoint.

    Image showing how to select the endpoint
  6. In the Auth tab, complete the following fields:

    • Type: Select API key.

    • Key: Enter a key. Example: Authorization.

    • Value: Enter the value of the Vocalize API key that you created. Use the following format: App <your-Vocalize-api-key>.

      Image showing how to configure the Auth tab
  7. In the Body tab, update the existing JSON with information about your campaign. Update only the content that is indicated by square brackets [].

    For more information about the parameters, refer to the Create a new campaign (opens in a new tab) API documentation.

    Image showing how to configure the Body tab
  8. To trigger the API call, select Send.

You should get an HTTP 201 status code that indicates that the campaign has been created. The response body contains the parameters of the campaign.

The id parameter contains the campaign ID in UUID format. This ID is required to use the campaign in your chatbot.

Image showing the response body

Use the Vocalize campaign with an Answers chatbot

To make your Vocalize campaign accessible to end users, use it in an Answers chatbot.

Follow one of these options:

Use a template to create the chatbot

  1. Use the following template to create the chatbot.

    Download the chatbot template (opens in a new tab)

  2. Import the template into Answers.

  3. Make the following changes:

    • Update the campaignId field with the ID that was generated in Postman.
    • Make other changes as required. Example: Update the instructions or the image.

Create the chatbot manually

Create the chatbot manually. In the chatbot, use the API element to communicate with the Vocalize APIs.

For more information about creating chatbots and using chatbot elements, refer to the Answers documentation.

Do the following in the chatbot:

  1. Get opt in from the end user to play the game.

    Image that shows how to get opt-in
  2. If the end user opts in, get their details such as name, city, and email address.

    Image that shows how to get end user details
  3. Save this information in a Person profile in People. Use the People profile element.

    Image that shows how to save user information in People
  4. Share the instructions of the game and the associated image with the end user. Ask the end user to send a recording of their response.

    Image that shows how to share the instructions
  5. Save their response in a variable.

  6. To send the end user's response to the Vocalize API, use the API element to call the Update score (opens in a new tab) endpoint. Configure the element as follows:

    1. Configure the Request.

      • Path: https://api.infobip.com/vocalize/2/scores

      • Header: Use the following Key-value pair: Key: Authorization
        Value: App

      • Body: Use the following Key-value pairs:

        KeyValue
        campaignIdThe ID that was generated in Postman
        userIdID of the end user. Example: {{endUserDestination}}
        nameThe name that you got from the end user. This name is used on the leaderboard.
        audioUrlThe URL of the audio file received from the end user.
        languageCodeen-US
    2. In the Response tab > Response body attributes section, save the score calculated by the Visualize API to an attribute.
      Use the following path:

      $.score.final_score

  7. Share the final score with the end user.

Need assistance

Explore Infobip Tutorials

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary
Service status

Copyright @ 2006-2025 Infobip ltd.

Service Terms & ConditionsPrivacy policyTerms of use