Generate Code Using the Wix AI Assistant

Use the Wix AI Assistant to help you work on your code inside the Wix IDE.

  1. To access the Wix AI Assistant, click the Wix AI Assistant AI Assistant Icon icon in the Wix IDE sidebar or right click in your Wix IDE and select Open the Wix AI Assistant. The Wix AI Assistant panel opens.

  2. Select the type of help you need.

  3. In the text input field, describe what you want your code to do, and then click send Send Button.

    Tip: To get immediate code fix suggestions, highlight the code and right click Wix AI Assistant: Fix code.

    code-snippet

    The code assistant creates a code snippet that performs the requested task and explains how the code works.
  4. You can add the proposed solution to your code by selecting:

    • Insert: Inserts the code directly into the code file you are editing.
    Note: If any code is highlighted in the Wix IDE, the inserted code replaces it. Otherwise, the code is inserted at the current cursor position.
    • Copy: Copies the code snippet to paste it manually into the Wix IDE.
  5. You can continue your conversation with the assistant after receiving its initial response. You can ask up to 2 follow-up questions after each initial query. After this, the Wix AI Assistant starts over.

  6. After your chat is complete, click home home-icon at the top of the Wix AI Assistant panel to start over.

Note: Make sure to test the code in preview mode before publishing your site.

Did this help?