Response rules

Using response rules in combination with message templates allows you to automatically group responses to messages into different response groups for reporting purposes.

Response rules are useful when users are sending messages with known responses (for example, Yes/No, Accept/Decline, or ranking something from 1 to 5).

Once a response rule has been defined, it can be associated with a message template. Any responses to messages sent using the template will be automatically categorised.

Note: Response rules are sometimes called response templates. These names can be used interchangeably.

  • JSON
  • XML

API endpoint

Generic

https://api.<region>.whispir.com/responserules/?apikey=<your_api_key>
Content-Type: application/vnd.whispir.responserule-v1+json

 

Limited to a workspace

https://api.<region>.whispir.com/workspaces/{:id}/responserules/?apikey=<your_api_key>
Content-Type: application/vnd.whispir.responserule-v1+json

 

Resource type

application/vnd.whispir.responserule-v1+xml
application/vnd.whispir.responserule-v1+json

 

Methods supported

GET
POST
PUT
DELETE