Testing instructions:
- Deploy dynamodb-lex via the SAM repository. Remember the table name you choose.
- Create a Lex bot named DetectTrafficker or anything you like.
- Create an intent called "LogIntent" with the following utterances as an example: "great opportunity to make great new friends and see all of the country" "Want to get out and see the country while getting paid cash everyday and having fun"
- Under Fulfillment, select "AWS Lambda function" and then choose "logIntent" which should have created by the dynamodb-lex SAM build.
- It should ask to allow the bot to execute logIntent. Allow it.
- Click "Build".
- To test connectivity to the lambda function type "ping". If all is working well you will see a "Pong!".
- In the "Test bot" console, verify that a non trafficking ad intent like "make money working from home stuffing envelopes" is not recognized.
- Put in a phrase that matches a trafficking intent but doesn't necessarily exactly match the utterances. I.e. make money and see the country
- The latter should be recognized and you should see a response that says "Logged!"
- Open the table in DynamoDB and verify that the input text was logged.

Log in or sign up for Devpost to join the conversation.