All videos

Events · 1:27

Events in depth

Read an event and its properties, use them in a job, and publish one by hand in Activity.

Transcript

0:00Events in depth

Activity, Events lists the events OAIZ has stored for Fjord Living, newest on top. Each row shows the Integration, the Event type, when it was created and its Attachments. Open Maya Chen’s customer message. Its Type says what happened, as a provider and a name. Attachments holds the files stored with the event, here the packing slip for order 4821. Event properties holds the content: Maya’s email, the order ID, the channel and her message, also as JSON. Triggered runs lists the runs this event started, with the workflow, its status and an Open log link. Open the workflow. Its job, Draft order reply, listens for this event type. Its prompt reads properties through references, such as properties dot order ID in double braces. When the job runs, each reference is replaced with the event’s value, so the prompt says 4821. Back on the event, Edit as New Event opens a sheet filled with its type and properties. Change the channel to chat and choose Publish Event. The original event stays unchanged. The copy lands on top as a separate event, and the live workflow starts a run for it. Add Custom Event opens the same sheet empty, for an event you write by hand.