Skip to content
Gamification

The Chatbot Web SDK now supports game integration to enhance user experience during human escalation scenarios. When a conversation is escalated to a human operator and the user enters a waiting state, interactive games can be automatically launched to keep users engaged while they await assistance.

Supported Games

1. Emoji Riddle Game

An engaging puzzle game where users solve riddles using emoji clues. Perfect for quick mental exercises while waiting.

Emoji Riddle Game Solution

2. Flappy Bird

A classic arcade-style game that provides entertainment and helps pass time during operator assignment delays.

Flappy Bird Game

Widget Settings Configuration

To enable gamification in your chatbot:

  1. Go to widget settings → branding section
Widget Settings
  1. Paste your desired game integration code in the branding section
Branding Section

Game Launch on Human Escalation

Use the following event listeners to automatically trigger games when human escalation occurs:

Emoji Riddle Integration

To add Emoji Riddle integration to your chatbot, use the following code:

Emoji Riddle Integration
$yourgptChatbot.on("escalatedToHuman", function() {
$yourgptChatbot.execute("game:start", {id:"emojiRiddle"});
});

Flappy Bird Integration

To add Flappy Bird integration to your chatbot, use the following code:

Flappy Bird Integration
$yourgptChatbot.on("escalatedToHuman", function() {
$yourgptChatbot.execute("game:start", {id:"flappyBird"});
});

iFrame Integration

iFrame Integration
$yourgptChatbot.on("escalatedToHuman", function() {
// Open an iframe when escalated to human
$yourgptChatbot.execute("bottomSheet:open", {
url: "https://simple-iframe-demo.glitch.me/"
});
});

Gamification

Enhance user engagement with interactive games during waiting periods

Learn more