Working with Event Triggers

In the Maven AGI platform, Event Triggers allow your app to receive real-time notifications when specific events occur.

Your app must register an event trigger for the specific events it wants to receive. For instance, if you want your app to handle new feedback submissions, you need to create an event trigger for feedback_created. When the specified event occurs, the Maven platform will call your app’s serverless code. The serverless app must have implemented the required typescript interface to handle the relevant event triggers.

All event triggers registered by apps are visible within the Maven dashboard. This provides customers with an overview of all active event triggers and which apps have registered them. If your app does not register an event trigger, it will not receive any calls for that event.

Example Workflow

  1. Registering an Event Trigger: In postInstall, call the API to register an event trigger for feedback_created with the description Stores the feedback in <external service>.
  2. Event Occurrence: A user submits feedback.
  3. Serverless Code Invocation: The Maven platform executes the serverless code within the feedbackCreated function.
  4. Handling the Event: Your serverless code processes the feedback, such as storing it in a database or triggering a follow-up action.

Example Maven Apps

Was this page helpful?