Here is a full list of the events and data available for the AI Shopping Assistant.
Event name | When it’s fired | Event details |
---|---|---|
greenback.view | upon widget load | |
greenback.externalTrigger | upon external trigger is interacted | |
greenback.opened | upon widget opened | |
greenback.1stMessageSent | upon the first message sent | |
greenback.messageSent | upon the message sent | |
greenback.productRecommended | upon product recommended | |
greenback.productClick | upon product clicked in the recommendation | |
greenback.addToCart | upon clicking the add to cart button | |
greenback.restart | upon clicking restart button | |
greenback.closed | upon widget closed |
event name: greenback.view
This event is fired whenever the greenback widget is loaded. It will fire each time the widget is viewed.
This event is fired whenever the greenback widget is loaded. It will fire each time the widget is viewed.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
event name: greenback.externalTrigger
This event is fired whenever an external trigger activates the greenback widget. It will fire each time the external trigger is called.
This event is fired whenever an external trigger activates the greenback widget. It will fire each time the external trigger is called.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.message |
| message content |
greenback.triggerType |
| external trigger type |
event name: greenback.opened
This event is fired when the Greenback widget trigger is clicked and the chat window opens.
This event is fired when the Greenback widget trigger is clicked and the chat window opens.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
event name: greenback.1stMessageSent
This event is fired when the first message from user is sent.
This event is fired when the first message from user is sent.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.message |
| first message content |
event name: greenback.messageSent
This event is fired when a message from user is sent.
This event is fired when a message from user is sent.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.message |
| message content |
event name: greenback.productsRecommended
This event is fired when the Greenback recommends products to the user.
This event is fired when the Greenback recommends products to the user.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.message |
| the message that triggered the product recommendation |
greenback.products(array) |
| all the products recommended by greenback |
event name: greenback.productClick
This event is fired when one of the recommended products is clicked.
This event is fired when one of the recommended products is clicked.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.id |
| the SKU of the product clicked |
greenback.name |
| the name of the product clicked |
greenback.price |
| the price of the product clicked |
greenback.position |
| the position of the product ranked in the recommended products |
event name: greenback.addToCart
This event is fired when the user adds one of the recommended products to the cart.
This event is fired when the user adds one of the recommended products to the cart.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
greenback.id |
| the SKU of the product added to the cart |
greenback.name |
| the name of the product added to the cart |
greenback.price |
| the price of the product added to the cart |
event name: greenback.restart
This event is fired when a user restart the chat.
This event is fired when a user restart the chat.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |
event name: greenback.closed
This event is fired when a user closed the chat window.
This event is fired when a user closed the chat window.
Data variable | example | Description |
---|---|---|
greenback.visitorId |
| the visitor’s device ID |
greenback.sessionId |
| the visitor’s session ID |
greenback.page |
| the page URL of the widget was loaded |