Launching Conversation Cloud - Reimagine CX in the Digital Age. Learn More
NEW! Pre-Approved WhatsApp Templates To Keep Your Customers Closer Explore
Conversational Internet is digitizing the other half of the world Learn More

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

Whatsapp Direct Messaging API

Know what is WhatsApp direct messaging api, how you can leverage it.
Read More >

Click to Chat ads on WhatsApp- A vital tool for your marketing arsenal

Learn What is WhatsApp click to chat ads| how to create a WhatsApp click to chat...
Read More >

Boost your business growth with WhatsApp Quality Based Messaging

Whatsapp quality based Messaging QBM| Why use Gupshup QBM.
Read More >
×
Read: Will RCS change the world of mobile messaging?