Automations
Config Model
Beyond the event
payload argument into your automation, you can also accept a second optional argument: config
. The config
should be a Pydantic model that you define, which can hold configurable state for your automation such as prompts, Sentry project to Github project mappings, and so on.
Example
When your automation is registered, we generate a dynamic form from your Pydantic model schema. The owner as well any public installers will be able to edit the configuration from the dashboard.