set_contact_profile_schema
Add or update custom fields in a Cognigy.AI project's contact profile schema while preserving built-in and unlisted custom fields. Run with dryRun false to apply changes.
Instructions
Adds or updates custom fields in the Cognigy.AI contact profile schema of a project. Built-in fields (firstname, email, ...) always exist; existing custom fields not listed are kept. MUTATING: Set dryRun=false to update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"schema": "<schema>"
},
"name": "set_contact_profile_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true (default), validates without updating. Set to false to actually update. | |
| schema | Yes | Custom fields to add or update. Existing custom fields with the same internal name are replaced; others are kept. | |
| projectId | Yes | The project ID to set the profile schema for |