Using listener actions

A listener in HTTP requests is a component that waits for and captures incoming requests sent from clients to a server. It manages these requests by accepting connections, decoding data, routing requests, and executing associated actions.


Steps:

  1. Click the "Listener" action.
  2. Copy the secret URL for using it in trigger service.
  3. (a) Add a "Message" action and use your listener variables to send them to the user.
    (b) Add a "Send To" action and use your listener variables to send them to the specified users.
  4. Add the text of your message.
  5. Click the "Save" button.

If you have the "customer._id" of the user you want to send a message to, you can use option 3. (a).
If you want to send your message to several users of your bot or channel (Slack), use option 3. (b).


All variables the listener receive and record are stored in the following format — {{ listener.X }}; the X is the name of the variable the trigger passes. For example {{ listener.content }}.