Forward SMS to Slack
Posted: 27 Mar 2019 01:46
Hello,
I'm trying to forward an SMS to Slack, via a webhook.
The following works, but I can only manage to send a static JSON.
I'm not sure how to interpolate the SMS text in the JSON, and how to deal with escaping the text in the JSON.
Trigger:
Trigger Type: SMS Received
Action:
Action Type: HTTP Request
URL: https://hooks.slack.com/services/XXX/YYY/ZZZ
Request Method: POST
Content Type:
General Text
application/json
Data:
{'{"text":"Hello, World"}'}
Any idea how to get this to work?
As a temporary workaround, I got something to work via the "Forward SMS to mail" flow in the catalog, but it's not ideal.
I'm trying to forward an SMS to Slack, via a webhook.
The following works, but I can only manage to send a static JSON.
I'm not sure how to interpolate the SMS text in the JSON, and how to deal with escaping the text in the JSON.
Trigger:
Trigger Type: SMS Received
Action:
Action Type: HTTP Request
URL: https://hooks.slack.com/services/XXX/YYY/ZZZ
Request Method: POST
Content Type:
General Text
application/json
Data:
{'{"text":"Hello, World"}'}
Any idea how to get this to work?
As a temporary workaround, I got something to work via the "Forward SMS to mail" flow in the catalog, but it's not ideal.