Integrate meetings lite dashboard
Document to integrate meetings lite dashboard
Prerequisites:-
Register a new account at https://my.saleassist.ai with email and password
Follow steps from this link GETTING STARTED.
Steps to integrate
Step 1 - Call the login API to get tokens
Use the below mentioned API request to get the long term JWT for the agent which will be used to connect with the Saleassist iframe dashboard.
Request Method: POST
Request URL: https://platform.saleassist.ai/auth/login
Request Body:
{
"email": "<email>",
"password": "<password>"
}
Curl command:
curl --location 'https://platform.saleassist.ai/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "<email>",
"password": "<password>"
}'
Sample Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IFsZWFzc2lzdC5haSIsIm1vYmlsZV9udW1iZXIiOiIiLCJlbWFpbF92ZXJpZmllZHBpcmVfYXQiOjE3MjEyOTcxOTk4MzcsImF1dGhfdGltZSI6MTcyMTIxMDc5OTg0Mn0.LrO8KQ3VhlzUXA4xZv1dOL6961A",
"refresh_token": "",
"expire_at": 1721297199837
}
This API call should be made on the backend server for security concerns, i.e. to avoid Javascript injected code to sniff users credentials. Token has a validity of 1 day so user will have to login again after 1 day
Step 2 - Open iframe in the front end
Use the following code snippet to integrate the Saleassist Dashboard on your website using an iframe. The styling of the iframe can be decided according to your theme.
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe loading="lazy" title="SaleAssist" false src="<
TO BE PASSED
>" style="border:none; position: absolute; top:0; left:0; height: 100%; width: 100%;" allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture; fullscreen;" frameborder="0" allowfullscreen>
</iframe>
</div>
The src of the iframe is https://my-lite.saleassist.ai/?token=<TOKEN GENERATED BY THE LOGIN CALL>
Thanks.
For more details, you can write us at [email protected]
Last updated
Was this helpful?