get https://api.cliengo.com/1.0/sites//chatbot/triggers
Field | Type (default) | Description |
---|---|---|
response | string | Bot's answer to the message. |
stopNextMessage | boolean (true) | Will only send the response to the trigger. The bot will continue the conversation as normal once the user sends another message. |
ignoreLead | boolean (false) | Marks the lead as spam. |
matchesList | array_object | List of matchers for the trigger. Defined in the json below. |
matches[i].type | One of this strings: -phrase -contains -startswith -endswith -equals | IMPORTANT: ALL match strategies are case-insensitive) phrase: Use some intelligence to match if root keywords in user message match with "value" regex: Match the regular expression in "value" equals: Matches if user message is exactly equals to "value" contains: Matches if user message contains "value" startswith: Matches if user message starts with "value" endswith: Matches if user message ends with "value" |
matches[i].value | string | the string value you want to match. |