The Wix AI Assistant is an intelligent coding companion built into the Wix IDE. It provides developers with real-time assistance, helping you write code, fix errors, discover features, and learn to use Wix APIs to create great sites.
To access the Wix AI Assistant, click the Wix AI Assistant icon in the Wix IDE sidebar:
This opens the Wix AI Assistant panel:
There are several ways the Wix AI Assistant can help you:
For assistance in writing new code, follow these steps:
The code assistant creates a code snippet that performs the requested task, and explains how the code works.
For example:
To find out what's wrong with code that isn't working, follow these steps:
Select Fix my code.
In the text input field, paste the code that isn't working, then click .
For example:
The code assistant then asks you to describe the problems or errors you're encountering. Describe your code's problems in the text input field, then click .
For example:
The code assistant explains what's wrong with your code and provides a code snippet with code that should work correctly.
To ask questions about Wix APIs and find out what you can do with them, follow these steps:
The code assistant answers your question based on the Wix API documentation.
For example:
You can also access the Wix AI Assistant directly from the editor window:
When the Wix AI Assistant provides a code snippet, an Insert button and a Copy button appear above it:
Click Copy to copy the code to the clipboard.
Click Insert to insert the code directly into the code file you are editing. The code is inserted where your cursor is currently located. If you have some code selected, the inserted code will replace it.
The Wix AI Assistant provides an interactive chat interface, so you can continue your conversation with the assistant after receiving its initial response. For example, you can ask clarifying questions, request corrections, or make further queries that build on your first one.
To continue the conversation, enter your question in the text input field, then click .
You can ask up to 2 follow-up questions after each initial query. After this, the Wix AI Assistant starts over.
After your chat is complete, you might want to get assistance with a new question. To start over, click the home icon at the top of the Wix AI Assistant panel.