How to connect the Salut channel
To connect Salut:
- Connect a channel in JAICP.
- Create a SmartApp in SmartMarket Studio.
- Prepare your SmartApp for review.
- Test your SmartApp.
Connect a channel in JAICP
Open your project in JAICP.
Click Channels → Inbound → Connect channel in the dashboard.
Select Sber Salut under Voice assistants.
Configure the parameters:
- Name — specify a name for the channel or keep the default one.
- Branch — specify the project branch you want to deploy into the channel (
master
by default). You can also select a Git tag or enter a specific commit hash. - Deployment — select Automatic (whenever any change made to the project is saved) or Manual (using the Deploy button in the channel description line).
cautionYou have to deploy a script before starting the bot. At this stage, the system builds the bot, checks the script syntax, and performs tests.Click Create.
Click Get webhook under the name of the newly created channel. The webhook URL will be copied to the clipboard. You will need the webhook when configuring your SmartApp.
Create a SmartApp
To make your bot available for devices with Salut, you need to publish it in the SmartMarket store.
- Sign in to SmartMarket Studio via your Sber ID.
- In your personal workspace, create a project.
- Select SmartApp.
- Configure parameters:
- Specify the application name to be displayed in the store and used to invoke that application.
- Select Chat App as a SmartApp type.
- Complete project creation.
- On the project page, select SmartApp webhook from the right column.
- Configure webhook parameters:
- Select SmartApp API as a project type.
- Paste the webhook URL you have copied before in JAICP.
- Save your SmartApp.
Go through the review process
Each SmartApp goes through review before the rollout: it is checked for legal, ethic, technical, reputation, and other compliance.
On the right side of the SmartApp page, you will see what sections you need to fill out. Specify all information about your SmartApp according to the requirements and submit it for review.
You will be able to submit your SmartApp for rollout after it is approved.
Test your SmartApp
You can test your SmartApp on the device or in the Sber Salut application while it is still under review.
To run the SmartApp on your device or in the application, say the following phrase:
start command + SmartApp name