Be sure to
- deploy to aws and note your service's POST endpoint
- setup your Smooch app: (most steps are commented out as part of
linkBot2App()
)- create your pipeline processor object (webhook)
- add your processor to the
appuser
pipeline
- create an entry in your DynamoDb table for your [configured] app, as in the example below
- for
minimial_widget.html
:- replace
<<smooch appId Here>>
with your smooch appId (it should still be within single-'
or double-quotes"
- for best results, serve the
minimal_widget.html
page via a server (e.g.:python -m SimpleHTTPServer 80
)
- replace
Examples
DynamoDB 'approved Apps' table entry
{
"appId": "5da8xxxxxxxxxxxxxxxx2852",
"JWT": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImFwcF81ZGE4eHh4eHh4eHh4eHh4eHh4eDg3YTIifQ.eyJzY29wZSI6ImFwcCIsImlhdCI6MTU3MTMxODg4Mn0.<signature>",
"owner": "My-PoC",
"processorId": "5da8xxxxxxxxxxxxxxxx626f",
"processorSecret": "gUECxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKyzw"
}
You can customize your responses in responses.json file and then sls deploy