Skip to content

Whatsapp Workflow with dummy HTTP actions#6

Open
krishan1390 wants to merge 2 commits intoprojectstepone:masterfrom
krishan1390:whatsapp_workflow
Open

Whatsapp Workflow with dummy HTTP actions#6
krishan1390 wants to merge 2 commits intoprojectstepone:masterfrom
krishan1390:whatsapp_workflow

Conversation

@krishan1390
Copy link
Copy Markdown

int idleTimeOutSeconds = configuration.getIdleTimeOutSeconds();
idleTimeOutSeconds = idleTimeOutSeconds == 0 ? 30 : idleTimeOutSeconds;
try {
// Create a trust manager that does not validate certificate chains
Copy link
Copy Markdown
Author

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\"",
Copy link
Copy Markdown
Author

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"
Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants