Change a widget
1
Open the widget
In Tolstoy, go to Widgets and open the widget.
2
Tell the agent what you want
Write your request in the chat.
3
Examine the preview
The agent shows the result in Widget Preview. The Code tab shows the code. Ask for more changes until the widget does what you want.
4
Publish
Click Publish. Your store does not change until you publish.
Write a good request
- Write what the shopper does and what must happen. For example: “When a shopper clicks Add to cart, open my cart drawer.”
- Give the URL of a page where the widget shows. The agent can open your store in a browser and examine its code.
- If you know the function, element, or event that your theme uses, give its name. Then the agent does not have to find it.
- If mobile and desktop must be different, write what each one must do.