update_writing_style_from_text
Replace all of a writing style's rules, learned ones included, with rules AI-extracted from pasted text (by writingStyleId). The extraction runs as a background job: the style keeps its current rules until it finishes, rule edits made meanwhile are overwritten, and only one extraction per style can run at a time. Check list_writing_styles until extractionStatus is completed or failed (failed leaves the rules unchanged and sets extractionError). Campaigns that use this style then write every AI message and AI reply generated afterwards with the new rules, including for contacts already in a sequence.
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": {
"writingStyleId": "<writingStyleId>",
"text": "<text>"
},
"name": "update_writing_style_from_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| writingStyleId | Yes |