Sent when table scope data is created, modified, or deleted.

If subscribed, whenever an object is created, modified or deleted in the context of a bot flow, bot component or Meya API, a table event will be sent to your Webhook URL.

Use-cases:

  • keep object databases in sync
  • event-based workflows

User event object

FieldDescription
type
string
Always table
bot_id
string
The id of the bot associated with the data ex. BJty7evfw2b
user_id
string
Not used. Always null
sender
string
Always bot
timestamp
float
UNIX timestamp of the change to 5 decimal precision. ex 1487093050.56191
operation
string
One of insert, modify, remove
object
object
The up-to-date object model
table
string
Table name where the object resids. ex food
{
    "user_id": null,
    "sender": "bot",
    "timestamp": 1487092324.516319,
    "object": {
        "name": "Big Mac",
        "ingredients": [
            "2 all beef patties",
            "special sauce",
            "lettuce",
            "onion",
            "sesame seed bun"
        ],
        "price": 3.98,
        "image_url": "http://i.imgur.com/UM1bL5F.jpg",
        "id": "O4PTHV5E87T",
        "bot_id": "BJty7evfw2b"
    },
    "table": "food",
    "operation": "modify",
    "type": "table",
    "bot_id": "BJty7evfw2b"
}