Advanced : adding automatic placeholders inside an interaction rule

Sometimes you might want in the payload of a notification message of payload for instance or in the URL of an open url or open deep link or open passbook action to have references to the objects (i.e beacon devices, venues) that are related to the interaction rule.

This can enables for instance to personalise a message : "Welcome in Santa-Cruz shop". Where Santa-Cruz shop is for instance the name of the venue object associated to a the beacon rule and is replaced dynamically thanks to the association of a specific beacon_device to a venue.
To do this in the notification object a developer could use such syntax

{
  "alertBody": "Welcome in {u_venue_name}"
}

The cloud manager can handle a number of placeholders in the rules dynamically that are replaced when serving the rule to the user.

The syntax of the placeholder is {place_holder_name}.

As of October 26th 2015 these are placeholders supported in any of the actions of a contextual interaction rule :

  • {id} : id of the contextual interaction rule (beacon or geofence)
  • {name}: name of the contextual interaction rule (beacon or geofence)
  • {u_venue_ext_id} :external ID of a venue associated to a beacon device associated to a venue or a geofence associated to a venue
  • {u_venue_id}: id of the venue associated to the contextual interaction rule
  • {u_venue_name}: name of the venue associated to the contextual interaction rule