Skip to main content

Table of Contents

Carousel messages

The Pega Customer Service pyGenericTemplate data transform renders carousel media objects on Web Messaging and other supported private channels, such as Facebook and Apple Business Chat, through Messaging API. The carousel objects enable scrolling back and forth between images.

The customer can select an image and the customer's choice is then passed back to the system for processing.

For example, if the customer wants to book an appointment, the system displays available times as carousel messages. The customer can scroll back and forth to find the appointment that suits them.

A carousel message displaying options for customers to choose
Carousel displaying options for the customer to select an available

Configuring data transform to enable carousel messages

Configure thepyGenericTemplate data transform as a Custom response type on the Configuration tab of the Digital Messaging interface. The pyGenericTemplate is in the Work-Channel-Interaction-WebChat class. Optionally, you can also configure the pyPopulateOutboundData data transform in the Work-Channel-Interaction class to render carousel messages.

Perform the following steps to configure the pyGenericTemplate data transform:

  1. In your Digital Message interface, on the Configuration tab, in the Content section, click Add response.

  2. In the Create command dialog box, on the Response tab, perform the following steps:

    1. In the Response type list, select Custom.

    2. In the Response command field, enter a command that invokes carousel messages in the Web Messaging bot.

    3. In the Response text list, select or enter pyPopulateOutboundData or pyGenericTemplate.

    4. Select the Requires authentication check box to allow the system to prompt for customer authentication to use carousel messages in the live conversation.

    5. Click Submit.

Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us