The Increase Interest plugin is a tool in the Tracardi suite that is used to increment a specified interest value of a user profile.
The current version of the Increase Interest plugin is 0.8.0.
The Increase Interest plugin operates by raising the interest value associated with a specified profile by a predetermined amount. The plugin receives a payload (in JSON format), and uses this to find the profile to be altered. It then increases the interest of that profile according to the plugin's configuration. The success or failure of each operation is tracked and logged, with error messages being produced for profile-less events and empty profiles. Finally, the plugin returns the same payload it received, allowing it to be passed on to the next plugin in the workflow.
Inputs and Outputs
The input for the Increase Interest plugin is a JSON object, the "payload". This object is passed into the plugin and used to find the profile to be processed.
There are two outputs from the Increase Interest plugin: the payload and an error. The payload output port returns the object originally received by the plugin, while the error output port returns error messages encountered during the execution of the plugin.
The configuration options for the Increase Interest plugin are:
- Interest: This is the name of the interest that you want to increment.
- Value: This is the amount by which the selected interest should be increased.
Here's an example of how the JSON configuration for the Increase Interest plugin might look:
In this example, the value of the
travel interest would be increased by
5.0 for the selected profile.
This plugin does not require any external resources to be configured.
The Increase Interest plugin may return the following error messages under certain conditions:
- "Can not increase profile interest in profile less events.": This error occurs when an attempt is made to increase the interest of a profile-less event.
- "Can not increase interests to empty profile.": This error is encountered when the plugin tries to increase the interest of an empty profile.