> 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/triggers/trigger-provider-service-plugin/introduction.md

## Article Content:

# About the Wix Automations Trigger Provider Service Plugin

The Trigger Provider service plugin provides methods for implementing your app's trigger on Wix users' sites. With the service plugin, you can let users do the following:

+ Validate that they have configured their automation's trigger correctly.
+ Choose from multiple options, for example selecting a form from several options.
+ Retrieve updated data when an action is delayed following the trigger.

Learn more about [implementing a service plugin with Wix](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/service-plugins/about-service-plugin-extensions.md).

## Use Case

[Validate that the products listed in a trigger are still in the store](https://dev.wix.com/docs/rest/business-management/automations/triggers/trigger-provider-service-plugin/sample-flow.md).

## Before you begin

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

- You must [add a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app.md) in the app dashboard and define its [payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema.md).
- You must [report](https://dev.wix.com/docs/rest/business-management/automations/triggers/triggered-events/report-event.md) the triggering event in your code.

## Implement the service plugin methods

You select which service plugin methods you want to implement when you create a trigger in the app dashboard. There are 3 methods you can choose to implement:

+ [`Validate Configuration`](https://dev.wix.com/docs/rest/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration.md): We recommend implementing this method, which indicates to the Wix user whether a trigger configuration is valid.
+ [`Get Dynamic Schema`](https://dev.wix.com/docs/rest/business-management/automations/triggers/trigger-provider-service-plugin/get-dynamic-schema.md):
Implement this method if you want to create different options for users to configure the trigger. For example, if site visitors can submit several different forms, you can use `Get Dynamic Schema` to give the site owner different options to configure each form. The method then updates the fields available to the user for configuring the trigger, depending on the form selected. You must configure an [item selection filter](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/triggers/filter-fields.md) to use this method.
+ [`Refresh Payload`](https://dev.wix.com/docs/rest/business-management/automations/triggers/trigger-provider-service-plugin/refresh-payload.md): Implement this method if there will be a delay between the trigger and the action, and in particular if the data may update during that time period. This allows the user to receive any updated data before the action occurs.