This guide provides documentation for Wickr IO Integrations. If you're using AWS Wickr, see AWS Wickr Administration Guide.
Wickr IO lex bot
Prerequisites
Before you start, be sure to complete the following before continuing with this guide:
-
Follow steps 1 and 2 in Quick start to get ready to start the bot container.
-
Set up AWS CLI, or an AWS credentials file with valid current credentials on your host machine. For additional information on how to get credentials, see: Authentication and access credentials for the AWS CLI
-
For this example, we will assume that the credentials on your host exist at
/home/ubuntu/credentials/lex/.aws. This assumes that your username is ubuntu and that you have stored your credentials in the file~/credentials/lex/.aws/credentials. -
For long term credentials be sure to follow best practices as outlined in Authentication and access credentials for the AWS CLI.
-
Make sure to collect the following pieces of information
-
Bot ID
-
Deployment Alias ID
-
-
Deploy lex bot
Complete the following procedure to deploy a lex bot.
Step 1: Deploy and configure
-
Deploy and configure
wickrio-rekognition-botcontainer on your host. For more information, see wickrio-lex-bot. -
Start the docker image on your host
docker run -v ~/WickrIO:/opt/WickrIO -v /home/ubuntu/ credentials/lex/.aws:/home/wickriouser/.aws -ti public.ecr.aws/ x3s2s6k3/wickrio/bot-cloud:latest -
Select your preference for the welcome message.
-
At the Enter command: prompt, enter the command add.
-
Over the next several prompts, enter the username and password created in the previous steps.
-
You are prompted to select an integration. Type
@wickr-sample-integrations/wickrio-lex-bot -
Next, you are prompted for the AWS Region, and for the name of your profile in your credentials file that you set up earlier. If you are unsure of the AWS Region, you can use US East (N. Virginia). AWS Wickr is available in the following regions: AWS Wickr Regional availability.
Step 2: Start the bot
-
Use the list command to view a list of available bots.
-
Using the number of the bot that you just created (0 in the example), type the command start #, where # is the bot number (0 in the example).
-
Enter the password for the bot.
-
Use the list command to verify that the bot is running.
Step 3: Interact with the bot
-
In the top right corner of the navigation panel, select the new message button.
-
In the pop up menu, choose New Direct Message.
-
Search for your bot by display name.
-
Select your bot for a direct message, and send a message.