This article provides links to specific SDK implementations and examples of setting different attribute values.
You can write to Evolv AI’s context from your digital experience using one or more of our supported SDKs.
Below is an example using the Evolv AI Javascript SDK:
// Using the Evolv AI Javascript SDK
evolv.context.set('source_field', value)
// Example
evolv.context.set('order_value', 15.00)
Examples using the Javascript SDK
Set the campaign name of an ad source
evolv.context.set(‘campaign’, ‘back-to-school’) // this value is a 'string' type
Set value of an ecommerce order
evolv.context.set(‘order_value’, 15.00) // this value is a 'number' type
Set the status of a visitor
evolv.context.set(‘logged_in’, true) // this value is a 'boolean' type