updateProfile - Cognigy Documentation

Syntax

updateProfile(key, value)

Description

Updates a value in the current user’s Contact Profile.Parameters:

Returns: Promise<void>

Example

// Update the user's first name
await updateProfile("firstName", "Jane");

// Update a numeric field like age
await updateProfile("age", 30);

// Update a boolean preference
await updateProfile("newsletterSubscribed", true);

Last modified on April 21, 2026