You must have at least one Chat profile setup in order to receive any input. See “Chat profile” page for details how to setup Chat profile. Same Chat profile can be used for both Input and Output.
The input received from Chat profile can cause various actions by Big6.
- Create HS3 device. This depends strictly on the Chat Profile settings. It happens automatically and doesn’t need any action.*
- Update HS3 device previously created by the same profile.
It happens automatically and doesn’t need any action.* - Set the HS3 device value and string from the input data. It happens automatically no action needed. *assuming that the profile was setup properly and the incoming data matches the assumptions used in the profile setting. See “Chat Profile” for more information.
- Trigger HS3 events
There are two ways of triggering HS3 events by Chat input
- Natively in HS3 by “Device value has changed or set”. As far as the Chat input creates/updates devices (depending on the Chat profile setup) this very action can be used to trigger an HS3 event.
- By Big6 Chat conditions as explained below.
Triggering HS3 events from Chat input
Go to HS3 conditions drop down menu and look for- and select “Big6 Chat”
![](http://34.219.232.100.xip.io/wp-content/uploads/sites/4/2018/11/Screenshot-129.png)
You’ll see several options ( called “matchers”) to act upon the received information. As the name suggests there will be HS3 action if there is a match and no action otherwise. In the sample screenshot below the HS3 action is to send out a text message.
Add text or type / to add content
String matcher. You can provide any string that must be contained in the incoming message in order to trigger. You can also provide the exact starting position of your string within the income message for the trigger to happen. Use 0 for ignoring the position and find the string anywhere.
Example:
Income message: The rain in Spain stays mainly in the plane
String matcher (position):
Spain (0) – will trigger as Spain is within the income message and 0 means disregard position
rain (6) – will not trigger as “rain” does exist but it doesn’t start at position 6
Italy (0) – will not trigger as the word “Italy” is nowhere in the income message.
Training: Will the string “main” (0) trigger.
RegEx matcher. RexEx must produce logical result “true” or “false”. Will trigger if the result is “true” and will not trigger otherwise.
Example
Income chat message: I’ll be home in 20 minutes
RegEx: ${ Numbers(input)[0] < 30}
This income message will trigger HS3 event as it is true that 20 is < 30. The event may cause HS3 to speak “Set the table for dinner Daddy is coming” for example.
Training: Write RegEx to trigger HS3 geo fencing event event if iphone is set to report lat and lon over chat profile like this
lat=xx, lon=yy
and the geo fence center is set at lat = 45 and lon =72
Use the sandbox at the bottom of Big6 -> Configuration page to validate your REgEx.
Number matcher: You pick what count in the string to use for matching and to what value to match
Example:
Income message: Filter=1 Pump=0 Cleaner=1 Solar=0
Matcher setup: looks for number 1 in 2nd position
Result: Will not trigger as the second number in the income message is 0 not 1.
on/off matcher. Same as number matcher but looks for “on” and “off” strings instead.