The Action Provider service plugin allows you to implement an action that Wix users can add to automations on their sites. This means you can take actions in your service in response to events that happen on Wix sites or in the site dashboard. For example, in response to a trigger, your service can send an email, generate an invoice, or update another Wix service using its APIs.
The Action Provider service plugin lets you do the following:
It’s important to note the following points before starting to code:
To configure your action in your app's dashboard:
Select Automations from the left menu, then select Create New > Action.
Give your action a name. This is displayed to users when they add the action in the Automations UI.
Notes:
Add a short description explaining what your action does. The description is displayed to users when they select your action. This is an optional field.
Choose whether to hide the action, so it doesn't appear as an individual action on a user site. You should do this if the action is part of a pre-installed automation.
Under Service plugin endpoints, enter your base provider URI and select the service plugin methods you intend to implement.
Configure your input schema.
Optionally, configure your action's UI.
Save and test your action.
When a user installs your app, your actions become available for their automations, as shown here: