ai
Policy Scan Auto Fix Flow Automation
Auto-fix policy violations on a draft FlowAutomationCreatePayload.
Same retry-until-clean loop as the automation variant. Rewrites text inside flow nodes (message body, title/subtitle, button labels, carousel items, trigger keywords, ai_prompts).
post/v1/ai/policy_scan_auto_fix_flow_automation
Request
- Base URLhttps://api.linktodm.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
exclude_flow_automation_idinteger nullable
When fixing an EDIT, pass the current flow_automation id so the post-fix re-scan's keyword-reuse + content-reuse checks don't flag the flow's own data against itself.
Request body
Example request
{
"payload": {
"nodes": [
{
"id": "b3c1f4a2-5d7e-4a9b-9c8d-1f2e3a4b5c6d"
}
],
"edges": [
{
"id": "e-b3c1f4a2-7e8d-4c5a"
}
]
}
}Response
Successful Response
Example response
{
"payload": {
"nodes": [
{
"id": "b3c1f4a2-5d7e-4a9b-9c8d-1f2e3a4b5c6d"
}
],
"edges": [
{
"id": "e-b3c1f4a2-7e8d-4c5a"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.