Write Event Handlers with the AI Assistant in the Wix Studio Code Panel

Note: This feature is only available to Wix Studio users.

Use the AI Assistant to write custom code behavior for elements on your site.

To write an event handler with the AI Assistant:

  1. Start a chat with the AI Assistant:

    • On the canvas: Right-click the element you want to customize and select Add Custom Behavior with AI.

    • Through the Code panel: Access the Code panel on the left side of the editor and select AI Assistant.

  2. Select one of the assistant's suggestions or describe what you want to customize.

    The AI Assistant generates the code.

  3. Select one of the following options:

    • Show code displays the generated code along with an explanation of the code. You can copy and paste this code into your page code, or ask the assistant to make adjustments.
    • Add code directly adds the code into your page code.

See also

Did this help?