Allows Line users to submit flood reports via text message chat bot. Part of the CogniCity platform, deployed for Urban Risk Map.
This module deploys two AWS lambda functions:
npm install
src/config
and .env
.npm run test
ACCESSTOKEN
: Line access token to trigger the webhook functionCHANNELSECRET
: Line channel secret code created on creating a botAPI_GW_WEBHOOK
: CogniCity server endpoint to get unique report card linksCARDSAPIKEY
: CogniCity server API keyCARDS_URL
: Client address for cardsPREP_URL
: Client address for prep cardsDEFAULT_INSTANCE_COUNTRY_CODE
: Default country for message files (e.g. 'us')DEFAULT_LANGUAGE
: Current default language is English. You can add more languages here and parameterize replies for each language