Create a custom event

In addition to the event triggers offered natively in Formant, you can create events with custom trigger criteria using the Formant Agent SDK, and use them to control notifications and actions just like any other event.

πŸ“˜

Get access to notifications and actions for custom events

Reach out to our Customer Success team to add custom event triggering functionality for notifications and actions to your Formant organization. You can reach us through the Intercom messenger in the bottom-right corner of this page, or at [email protected].

Step 1: Create a custom event with the Agent SDK

You can create events with custom trigger parameters using the Agent SDK. For an example of how to create an event using the Agent SDK, see GitHub: create_event.py.

πŸ“˜

For a complete reference of the Agent SDK, see Agent SDK reference.

Step 2: Create a corresponding event in the Formant UI

  1. In Formant, in the upper-left corner, open the menu and click Settings.
  2. Click Events >> Add Event Trigger.
  3. Give your event a name and click Continue.
  4. Select which devices can trigger this event by choosing a corresponding set of tags, and then click Next.

πŸ“˜

For more information on tags, or if you haven't yet configured your device(s) with tags, see Configure access levels.

  1. Under the Triggers tab, set Event Type to Custom Event.
  1. Enter the name of the custom event you created in Step 1.

Step 3: Configure notifications and actions

Once you've created your custom event and added it to Formant, you can configure notifications and actions to be triggered from that event just like any other. For more information, see Create an event and configure notifications.