Skip to main content
When helping a customer it can be useful to have context about their recent activity in your product. For example, if someone is getting in touch about a 401 error, it could be important to know that they recently deleted an API key in their settings.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
Events are created via the Plain API and you have full control of what they look like using Plain’s UI components. There are two types of events
  • Customer events: these are created in every existing thread for a customer. When a new thread is created (e.g. by an inbound communication, or by calling the createThread endpoint) the 25 most recent events are shown.
  • Thread events: these events belong to a single thread, and only appear in a single thread’s timeline.
Thread events and customer events stay off the Customer Inbox. A custom timeline entry is a separate timeline entry. The Customer Inbox can show it when the inbox is enabled and the customer can open the thread. Importing threads stores inbound and outbound messages as custom timeline entries.

UI components

To define what each event should look like, you use the Plain UI components. All the components are documented in the Plain UI Components section.

Playground

The UI Components Playground lets you build and preview the component JSON used to create an event. Use this to prototype an event before starting to build your integration. UI Components Playground →