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:
Some actions take time to complete, such as getting a site visitor's input or retrieving large amounts of information from a remote database. In these cases, you might want Wix to pause the automation until your action completes.
When Wix calls Invoke to run your action, your response can specify a timeout period during which Wix waits. When your action completes, successfully or not, call Report Action Invocation Completed with the action's status and any output data to let Wix know it can continue. If you don't call this method in the timeout period, Wix marks the action as failed and continues to the next step in the automation.