Sparkcentral by Hootsuite
Last updated
Last updated
Sparkcentral by Hootsuite allows you to manage all your asynchronous messaging channels with human and virtual customer service agents.
The first step to integrate Sparkcentral with Chatlayer.ai is to retrieve API Credentials from Sparkcentral.
Go to your Sparkcentral dashboard and open the Settings page.
Once you’re on the settings page, select the Integrations tab in the sidebar.
To retrieve your Sparkcentral API credentials click the Generate API Keys button in the top right corner of the screen.
Enter a name for your API credentials and click the Save button. A new entry will now be visible in the Integrations page containing your clientId and clientSecret. Keep these credentials open and go back to Chatlayer.ai to start the Sparkcentral configuration.
Go to the channels page in Chatlayer. Click the plus icon next to Sparkcentral to start the channel configuration.
Choose your region: US or EU
Enter your clientId and clientSecret in the form and press save.
After saving, the webhook URL for your newly created channel is visible. Copy this Webhook URL and go back to sparkcentral.
Return to your Sparkcentral dashboard and open the Settings page. Open the Virtual Agents tab from the sidebar on the settings page and click the Add Custom Virtual Agent button in the top right corner. This will open a popup allowing you to configure some details for the Custom Virtual Agent.
Enter the webhook URL for your virtual Chatlayer.ai agent under the section Custom Virtual Agents Configuration.
Once the configuration is complete, copy the Shared Secret under Custom Virtual Agent Configuration and save the new Custom Virtual Agent.
Go back to Chatlayer.ai, enter the shared webhook secret and save the channel configuration.
Edit the virtual agent configuration of Sparkcentral to enable the channels you want your bot to be active on.
To transfer the conversation from the chatbot to a live agent in Sparkcentral, you can create an Action block containing a "send to offload provider" plugin. Configure the Sparkcentral offload provider.
Once this Action is triggered the conversation will be added to the Sparkcentral agent queue.
You can find more information from user sessions connected to Sparkcentral channel under the following:
internal.channelDetails
An example for the internal.channelDetails can be as follows:
If you want to retrieve the profile url of the user then you can retrieve it by internal.channelDetails.contactProfile.profileUrl