automationImportFromPAF
Import an automation from a PAF bundle, creating a new draft automation (all triggers start inactive) in this workspace.
Call automationImportPreview first to get the list of entities
to resolve, then either:
- pass
resolutionswith a decision per entity (resolve,auto-create, orskip), or - pass
autoResolve: trueto accept every auto-matcher suggestion with no manual review.
Only import PAF bundles from trusted sources — a bundle can reference
recipients, product SKUs, and workflow logic that runs unattended once the
automation is turned on. Always review automationImportPreview
first for untrusted bundles.
Side effects: May auto-create tags, custom fields, or email templates.
Unresolved WhatsApp template/flow references mark nodes broken until
automationsReconcileImportIssues heals them.
Errors: Missing import decisions for N entities (manual mode only);
Recipient phone is required for {label}; Product SKU is required for {label};
Resolved target is required for {label}; Auto-create is not supported for {label}.
Auth · x-app-token · required permission automationsAdd
Related: automationImportPreview, automationExportPAF, PAFImportResult
automationImportFromPAF(pafJson: String!, name: String, resolutions: [PAFResolutionInput!], autoResolve: Boolean, source: String): PAFImportResultArguments
Returns
The created draft Automation (all triggers start inactive).
Entities matched to existing records in this workspace.
Entities newly created in this workspace (tags, custom fields, email templates only).
Entities that failed auto-creation.
Entities explicitly skipped — nodes referencing them are marked broken.
Nodes disabled because a referenced entity is unresolved/skipped/pending. Fix with automationsReconcileImportIssues.
Broken nodes specifically waiting on a WhatsApp template to finish syncing.
Broken nodes specifically waiting on a WhatsApp flow to finish syncing.