> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction.md

## Article Content:

# About the Wix Automations Action Provider Service Plugin

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:

- [Invoke](https://dev.wix.com/docs/rest/business-management/automations/actions/action-provider-service-plugin/invoke.md) your action.
- [Validate](https://dev.wix.com/docs/rest/business-management/automations/actions/action-provider-service-plugin/validate-configuration.md) the input values to the action and return an error to the Wix user if they're invalid.
- [Display the limits](https://dev.wix.com/docs/rest/business-management/automations/actions/action-provider-service-plugin/get-quota-info.md) you enforce on the number of actions a Wix user can perform.

## Before you begin

It’s important to note the following points before starting to code:

- Once you publish an app with a custom action, there are limitations to the changes you can make to the input schema you define when configuring your action. Learn more about [editing a published input schema](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/actions/about-the-action-input-schema.md#editing-a-saved-input-schema).
- Wix does not validate breaking changes to an input schema that uses composition. To ensure the user doesn't make errors when configuring an action that uses composition in its schema, we recommend performing the validation on your end.

## Action timeouts

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](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke.md) 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](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/report-action-invocation-completed.md) 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](https://support.wix.com/en/article/wix-automations-understanding-run-logs#understanding-statuses) and continues to the next step in the automation.

## Use cases

- [Run an invoked action](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow.md#run-an-invoked-action)
- [Run an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow.md#run-an-invoked-action-with-a-timeout)

## Terminology

- **Input schema**: A [JSON Schema](https://json-schema.org/) object that defines the fields that Wix needs to pass to your service plugin methods. Learn more about the [input schema](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/actions/about-the-action-input-schema.md).
- **UI schema**: The JSON schema that defines the UI for your action configuration in the user's site dashboard.

## See also

- [About actions](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions.md)
- [Add an action to your app](https://dev.wix.com/docs/api-reference/business-management/automations/actions/add-an-action-to-your-app.md)
- About [reporting and canceling events](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/reporting-and-canceling-events.md)

<!-- ## How to set up an action -->
<!--
To configure your action in your app's dashboard:

1. Select **Automations** from the left menu, then select **Create New** > **Action**.
   ![Create a new action](https://static.wixstatic.com/media/d4dde1_9234a376fa7b4f19bad1df3d5bc5c6c0~mv2.png)
2. Give your action a name. This is displayed to users when they add the action in the Automations UI.

   > **Notes:**
   >
   > - Your action key is generated automatically from the action name. Once you save your action you cannot change the action key.
   > - The action key is not displayed to users.

3. 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.
4. 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.
5. Under **Service plugin endpoints**, enter your base provider URI and select the service plugin methods you intend to implement.
6. Configure your [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema.md).
7. Optionally, configure your action's [UI](https://www.wix-pages.com/automations-ui-lib/?path=/story/getting-started--about).
8. Save and test your action.

When a user installs your app, your actions become available for their automations, as shown here:

![Choose an action](https://static.wixstatic.com/media/d4dde1_973b642cfbff470187982eaf97217618~mv2.png) -->