AI agent playbooks
Prepare a campaign draft
Create and check a campaign draft at a person's request without publishing it or starting a run on your own.
Goal
You prepare a campaign draft that can be checked and handed to a person for approval. End this playbook at the draft. Do not start a run yourself, even if the content was saved successfully.
Permissions needed
crm.readto read campaigns and customer groups.campaigns.writeto create, edit and preview drafts.accounts.readto check the accounts you plan to use.
Creating and editing campaigns requires an appropriate Manager-level role. This preparation playbook does not need campaigns.run; lacking run permission is a useful boundary.
The setup profile exposes commonly used campaign tools. Call operations without dedicated tool names through tools_run after reading their schemas.
Ask the person before
Ask about the goal, audience, sending accounts, permitted content, stop conditions and completion criteria.
Get explicit consent before creating campaign data. Distinguish “draft a proposal in the conversation” from “save a draft in the workspace.” If the person only asks for advice, do not create a draft.
Check first
Call whoami. Check permissions and granted accounts.
Read the campaign list to avoid duplicates. Read the relevant accounts and customer sources. Do not expand the audience yourself when the connection cannot see enough data.
Exclude do-not-contact recipients according to policy. Do not treat a customer's presence on a list as proof that they consented to every kind of content.
Steps
- Call
campaigns_list—campaigns.list— to find related campaigns. - Call
campaigns_getif you are editing an existing campaign. - Call
accounts_listto cross-check the planned accounts. - Read the
campaigns.createcontract withtools_describe. - After the person agrees to create a draft, call
campaigns_create. - Use
tools_runwithcampaigns.updateif you need to update the configuration. - Call
campaigns_save_graph—campaigns.save_graph— to save the draft flow. - Use
tools_runwithcampaigns.previewto check it in advance. - Call
campaigns_getto read back the saved data. - Hand over a summary and the points that still need approval.
Check after
Report the campaign ID, saved configuration and missing items. Confirm that you did not start the draft.
If you edited a campaign with ongoing activity, specify which draft parts you changed. Do not assume draft changes have become the running version.
On errors
If the graph is invalid, read the error and fix the step that caused it. Do not publish to “see whether it runs.”
If you lack permissions, stop and ask an authorized person to handle it. If the audience or accounts do not match the request, ask for a decision instead of substituting another source yourself.
When to stop
Stop when the draft has been saved and checked, when you do not have consent to create data, or when the next action would have an external effect.
See the campaign guide and action confirmations.