Conversational Internet is digitizing the other half of the world - Learn More
Build Gen-AI Powered Chatbots - Explore

Gupshup BLOCKS with PubNub

On March 27, 2017 | 2 Minutes Read
Generic

Gupshup and PubNub are pleased to announce the addition of the Gupshup BLOCK on the PubNub BLOCKS catalogue. You can now trigger a bot action via a PubNub BLOCK.


PubNub is a global Data-Stream Network (DSN) that provides the infrastructure that makes real-time communication possible. PubNub works primarily on the Publish/Subscribe model. This means that when data is uploaded (published), PubNub will immediately push out that data to anyone that was interested in it (subscribers). Messages sent through PubNub are sent on a channel. Channels are unique to a publish/subscribe keyset. Now, most messages sent across the PubNub network need to be modified either before or after the message has been fired from the publisher. For instance, you may want to transform the message content or filter all the messages according to criteria. This is where the concept of BLOCKS comes in.

BLOCKS allow you to deploy JavaScript directly into the PubNub DSN. These blocks are essentially lines of code that you can execute on your data streams in-flight. PubNub allows you to build your own or use pre-created BLOCKS from their extensive catalogue.

PubNub in association with Gupshup has added a BLOCK that enables you to connect your chatbot created on the Gupshup platform, to real-time data streams. Thus you can trigger any action on the bot based on an input. There are many ways to use a chatbot in conjunction with a data stream. For instance, you can control a smart bulb or any other IoT-enabled home automation device using a chatbot. You can also query real-time dashboards for live and updated cuts of data, and view it using a chatbot. This BLOCK also will enable you to easily add a chatbot channel to your existing application.

The Gupshup BLOCK uses the HTTP endpoint capability of a bot created on the Gupshup platform. Essentially, each bot created on Gupshup has an endpoint and this endpoint can be used to either trigger a function within the bot or store data for the bot. For more details about the HTTP endpoint of the bot, read this.

For a step-by-step guide on creating a chatbot on Gupshup and using the PubNub block to trigger a bot action, read this guide.

Team Gupshup
Team Gupshup

Blogs you will want to share. Delivered to your inbox.

Business Email

Recommended Resources

Is Your Chatbot WhatsApp Ready? A Game-Changer in Engagement

Make your chatbot WhatsApp ready to boost customer engagement with Gupshup’s platform for seamless, personalized interactions.
Read More >

What Are AI Agents? Exploring Their Role in Marketing, Commerce, and Support

Discover how autonomous AI agents effortlessly reason and interpret customer questions in natural language, all with...
Read More >

The State of CX in India

Explore how Indian businesses are transforming customer experience (CX) with conversational AI and automation. Read on!
Read More >
×
Read: Will RCS change the world of mobile messaging?