"Dashboard Apps in Bevatel enable organizations to embed external applications within the dashboard, providing valuable context for customer support agents during interactions."
Dashboard Apps allow organizations to embed an application inside the Bevatel dashboard to provide the context for customer support agents. This feature allows you to create an application independently and embed that inside to provide user information, their orders, or their previous payment history.
When you embed your application using the dashboard in Bevatel, your application will get the context of the conversation and contact as a window event. Implement a listener for the message event on your page to receive the context.
If your use case requires you to request the conversation data on demand from Bevatel, you can easily do so by sending a simple message to the parent window using the javascriptpostMessage api.
Bevatel will be listening to this key bevatel-dashboard-app:fetch-info.
You can query the dashboard app using the following code. Bevatel will be listening to this key and immediately send the requester the updated conversation payload.
window.parent.postMessage('bevatel-dashboard-app:fetch-info', '*')
// You would get a message in the on message listener with the appContext payload.