Playbooks
Common requests as tool sequences, with the checks a careful agent makes along the way.
Each playbook starts from something a person might say and shows the tools to call, in order. Tool inputs are in the tool reference.
"Add Northwind and their CTO Jane"
list_companieswithsearch: "northwind"to avoid a duplicate.- If none:
create_companywithcompanyName,domain(northwind.io) andcontacts: [{ email, name, title }]. A company always needs at least one person. - If it exists:
create_contactwithleadIdset to the company's id. A409means the email is already a contact;update_contactinstead. - Report the company id and the contact id.
"Find everyone we haven't contacted in a month and put them in a list"
list_contactswithlastContacted: "over30"(ornever),limit: 50, paging withskip.create_listnamed by the user, orlist_liststo find an existing one.add_to_listwithcontactIdsin batches.- Report how many were added.
"Send Jane a follow-up"
get_contactto confirm who Jane is and check her stage. If she is replied, bounced, unsubscribed, converted or dead, say so; only useforce: trueif the user explicitly asks.list_signaturesif a signature is wanted (signatureId: "default"is the usual choice).- If several Gmail accounts are connected (
list_gmail_accounts) and the user didn't say which, ask. - Show the recipient, subject and body. On the user's go-ahead,
send_email. For later, addsendAt.
"Launch a campaign to the Q4 list" (the safe way)
list_liststo find the list and its size.list_templatesif the email should start from a template;create_campaignwithname,subject,html(ortemplateId),previewText,signatureId, andmailboxIdonly if the user named a Gmail.add_campaign_recipientswithlistIds.get_campaign_summary: shows how many will be sent, how many skipped and why, the Gmail and its remaining daily allowance, and any problem that blocks launching (a[[placeholder]], no Gmail, no recipients).preview_campaignfor a real person in the audience, andsend_campaign_testto the user's own inbox if they want to see it there.- Show the summary and the preview. Only on the user's go-ahead,
launch_campaign(now, or withscheduledAt). - Later:
get_campaignfor sent, opened, clicked and replied counts;list_campaign_recipientsfor who was skipped;retry_failed_recipientsif Gmail failed for some (again, with a go-ahead).
"Set up a three-step follow-up sequence and enroll the webinar list"
create_sequencewithname, optionalmailboxIdandsignatureId, andsteps: each withsubject,html,waitDaysandthreadMode(REPLYkeeps follow-ups in the first email's thread).get_sequence_summaryto check for blocking problems;preview_sequence_stepfor one step.activate_sequence.enroll_in_sequencewithlistIdsanddryRun: true. Show who would be skipped and why.- On the go-ahead,
enroll_in_sequencewithoutdryRun. list_sequence_enrollmentsto follow progress;update_sequence_enrollmentswithaction: "stop"for anyone the user wants out. Remind the user to mark replies on the contact: the server can't read inboxes.
"What happened with Acme?"
list_companieswithsearch: "acme", thenget_companyfor the people and engagement counts.list_contactswithleadIdfor each person's stage, last contact and whether they opened, clicked or replied.- Summarise in a few lines; don't paste raw records.
"Warm up the new sales@ account"
list_gmail_accountsto find it.get_warmupto see whether one exists.add_warmup_inboxfor each inbox the user controls (3 to 50 are needed). Ask for them; never invent addresses.- Show the schedule and the inboxes. On the go-ahead,
start_warmup(the first email goes out at once if the window is open). get_warmuplater for today's count and the day number;pause_warmup,resume_warmup,update_warmup_schedule,stop_warmupas asked.
"Record that the customer upgraded"
track_eventwithname(your own event name, likeplan_upgraded),contact: { email }andproperties.contactFieldscan set custom fields at the same time.list_eventsto confirm it was recorded and which automations it started.- If the user wants an email to follow, that's an automation:
list_automationsto see what exists; automations are built in the Pedibee dashboard, wherepause_automationandresume_automationcan also be driven from here.
Things an agent should not try
- Reading replies or inboxes: there is no tool, by design.
- Removing someone from the do-not-email list unless the user says the recipient asked to hear from them again, and confirms.
- Building automations or the email designer's block layouts: use the dashboard; agents work with HTML templates.
- Connecting Gmail accounts or changing the team, tracking domain or settings.
