EVENTS & ACTIONS

Capture and react to critical events

PubNub’s Events & Actions (E&A) enables you to capture critical real-time events generated by users interacting on the PubNub platform (e.g. chat messages) and route them to third-party systems for storage, processing, data analysis, and more.

React to important PubNub events

Events & Actions sifts through millions of PubNub events in real time and sends the relevant ones to your server or third-party services for processing.

Store real-time data outside of PubNub

Stream important real-time events, such as chat messages containing a specified keyword, from PubNub to external services for storage, analysis, or AI model training.


Save dev time with integrations

Easily create integrations with external services such as webhooks, AWS (S3, SQS, Kinesis), Kafka, RabbitMQ, and more through a no-code interface.


Use Cases

External data storage

- Archiving important real-time data (chat messages, auction bids, geo coordinates, etc.)

- Centralized storage for IoT sensor data

- Logging errors generated by users and devices

- Storing the last known location of users before they disconnect

- Gathering data for analysis or to train an AI model

Near real-time data processing

- Routing important chat messages

- Sending critical events to your server for processing

- Populating a leaderboard based on data from client devices

- Push notifications for users when smart sensor data is out of the specified range (anomaly detection)

- Sentiment analysis on chat messages

Capturing the joy of live events

Key Features

Growing number of events

Message Sent, Presence, Push, App Context, and Message Actions.


Growing catalog of actions

Webhooks, Amazon SQS/Kinesis/S3, Kafka, AMQP, and IFTTT.


Advanced event filtering

Use the advanced JSONPath filter to inspect the event payload and intercept only the events that are important to you.


Powerful API

Dynamically modify event listeners to fit your business needs and create webhooks, S3 buckets, and other actions on the fly.

Getting started with Events & Actions

Activate Now

Log into the PubNub Admin Portal and select Events & Actions from the left navigation bar to learn more about how to activate E&A.

Frequently Asked Questions

expand_less

What are some common ways that customers use Events & Actions?

  • Filter for messages from certain channels (or all channels) and send them on an external storage service (like Amazon SQS) for archiving.
  • Filter for emoji reactions from a certain virtual event chat and send them to a third-party system for sentiment analysis.
  • Filter for critical events (e.g. important messages, purchases, flagged content) and send them to his own backend system for processing.


  • Filter for messages from certain channels (or all channels) and send them on an external storage service (like Amazon SQS) for archiving.
  • Filter for emoji reactions from a certain virtual event chat and send them to a third-party system for sentiment analysis.
  • Filter for critical events (e.g. important messages, purchases, flagged content) and send them to his own backend system for processing.


expand_more

What kind of events does Events & Actions support?

Currently, Events & Actions supports the following events:

Messages:

  • Message sent

Presence:

  • User state changed in channel
  • User started subscription to channel
  • User stopped subscription to channel
  • User timed out while subscribing to channel
  • First user subscribed to channel
  • Last user left channel
  • Interval occupancy counted

Mobile Push Notifications:

  • Device removed
  • Push error

App Context:

  • User created
  • User updated
  • User deleted
  • Channel created
  • Channel updated
  • Channel deleted
  • Membership created
  • Membership updated
  • Membership deleted

Message Actions:

  • Message action added
  • Message action removed


expand_more

What kind of events does Events & Actions support?

Currently, Events & Actions supports the following events:

Messages:

  • Message sent

Presence:

  • User state changed in channel
  • User started subscription to channel
  • User stopped subscription to channel
  • User timed out while subscribing to channel
  • First user subscribed to channel
  • Last user left channel
  • Interval occupancy counted

Mobile Push Notifications:

  • Device removed
  • Push error

App Context:

  • User created
  • User updated
  • User deleted
  • Channel created
  • Channel updated
  • Channel deleted
  • Membership created
  • Membership updated
  • Membership deleted

Message Actions:

  • Message action added
  • Message action removed


expand_more

What kind of actions does Events & Actions support?

Events & Actions offers a growing catalog of actions currently including:

  • Webhooks
  • Amazon SQS
  • Amazon Kinesis
  • Amazon S3
  • Kafka
  • AMQP
  • IFTTT
expand_more

What is the maximum number of events per second for an action?

Events & Actions can be scaled up to meet any customer needs. However, customers that would like to exceed the following numbers, are asked to reach out to support (additional charges may apply).

  • Webhooks: 800 events per second
  • SQS: 1000 events per second
  • Kinesis: 1000 events per second

expand_more

Do you offer programmatic access to event listeners or actions?

Yes. To request API access, navigate to the PubNub Admin Portal's Events & Actions tab, click the Request API button, and complete the request form. If you are not already using Events & Actions, you must first activate it.

expand_more

Where can I learn more about the JSONPath?

JSONPath is a query language for JSON with features similar to XPath for XML. JSONPath is used for selecting and extracting a sub-section from the JSON message payload. Learn more here.

Talk to an expert

Start building real-time experiences today. Try PubNub for free or contact sales to get started.