-
Notifications
You must be signed in to change notification settings - Fork 12
Whatsapp Workflow with dummy HTTP actions #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| int idleTimeOutSeconds = configuration.getIdleTimeOutSeconds(); | ||
| idleTimeOutSeconds = idleTimeOutSeconds == 0 ? 30 : idleTimeOutSeconds; | ||
| try { | ||
| // Create a trust manager that does not validate certificate chains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just to make the API calls from local. Will not be merging, but just posting here for reference
| "type": "EVALUATED", | ||
| "fromState": "SMS_SENT", | ||
| "active": true, | ||
| "rule": "path.exists(\"$.update.source\") == true && \"$.update.source\" == \"whatsapp\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this condition would change based on integration from ingress
| "method": "POST", | ||
| "url": "https://api.kaleyra.io/v1/SSID/messages", | ||
| "payload": "{\"to\":\"+91TO_PHONE\",\"body\":\"Welcome to COVID National Helpline. \\n \\nPlease answer the questions appropriately to receive assistance\",\"sender\":\"+91FROM_PHONE\",\"channel\":\"WhatsApp\",\"from\":\"+91FROM_PHONE\",\"type\":\"text\"}", | ||
| "headers": "api-key:APIKEY" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace SSID, TO_PHONE, APIKEY, FROM_PHONE with right variables.
High level flow - https://drive.google.com/file/d/1eC7z8oxU0sdaAIzC6c9DojlHUUjVUWLM/view?usp=sharing
Spec - https://docs.google.com/document/d/1OkmbfawNuIs3CN0ppus3v0Z5gRbj2Y181W3CWjXC9h4/edit#