kenso 0.1.200 → 0.1.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/discover.json +1 -1
- package/dist/kenso.js +2 -2
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/dist/step-types.json +1 -1
- package/docs/crm.md +1 -23
- package/docs/reference.md +59 -185
- package/package.json +2 -2
package/dist/step-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"stepTypes":[{"type":"account.add_to_campaign@1","key":"account.add_to_campaign","version":1,"kind":"action","title":"Add to a campaign","description":"Account runs only. Adds the account's people with no 1:1 touch planned to a campaign, the workflow's own campaign unless you send campaignId. who is not_yet_contacted (the default: nobody ever sent them a 1:1 touch, a member mailbox email or a campaign email) or everyone_mapped. People whose role is in skipRoles (default economic_buyer) and anyone touched within skipTouchedWithinDays (default 30 days, 0 turns it off) stay out, and so do blockers, people not targeted, people without an email and people another open campaign already holds, so an account's people join one campaign however many take them. Everything the workflow saved on the account travels with each person it adds, as custom variables the campaign's emails can use. Imports like any lead upload (dedup, blocklist, lead credits), and running it again adds nobody twice. The step never sends: the campaign's own sequence does. Use it for nurture air cover after trigger.account_stage, with stages [\"nurture\"]: an account that left those stages before the step ran gets nobody and the run ends. Needs the nurture_air_cover feature. Returns campaignId, added, alreadyIn and skipped. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"nurture_air_cover"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Campaign to add the account's people to. Defaults to the workflow's own campaign in a campaign workflow.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"who":{"description":"Who joins: not_yet_contacted (nobody touched them yet, the default) or everyone_mapped.","type":"string","default":"not_yet_contacted"},"skipRoles":{"description":"Stakeholder roles that never join. Defaults to [\"economic_buyer\"]; [] skips no role.","type":["array","null"],"items":{"type":"string"},"default":null},"skipTouchedWithinDays":{"description":"Skips anyone touched within this many days (1:1 send, member mailbox email or campaign send). 0 turns it off.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30},"stages":{"description":"Add people only while the account is in one of these stages. Otherwise the step adds nobody and the run ends.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"account.classify_tier@1","key":"account.classify_tier","version":1,"kind":"ai","title":"Classify into tier","description":"Places the run's account (an account run, a person run, or a lead with an account) in one of the workspace's account tiers with its tiers prompt from Knowledge > Prompts: the prompt for the tier the account is in, else the one for Everyone, which reads the account's firmographics, signal score, engaged people, plan and latest signals and picks the tier whose \"who belongs\" fits best. The prompt's first judgment of an account stores the tier and routes nothing, also over a tier the score stored, unless that tier put the account in its campaign; an account it judged before moves and routes to the new tier's destination as the ladder does. A tier a person set by hand, and a stage the ladder does not place (meeting_booked, lost, paused, not_a_fit), are left alone at no charge, and so is an account judged recently (30 minutes by default) at the score it has now, so person and lead runs of one account judge it once. Needs custom tiers (accounts_tiers, accounts_tiers_custom and knowledge). Returns from, to, changed and status (placed, moved, unchanged, hand_set or not_routable). Charged once per answer (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts_tiers"},{"kind":"flag","key":"accounts_tiers_custom"},{"kind":"flag","key":"knowledge"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow places the account. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"account.map_committee@1","key":"account.map_committee","version":1,"kind":"data","title":"Map buying committee","description":"Maps the buying committee of the run's account (an account run, or the account of a person or lead run): Ken finds the people who buy, approve and sign, adds them to the account and fills its seats. The step waits until the committee run ends, then queues an email find and a phone find for each signer (economic buyer, approver, executive sponsor) who has no email or no phone yet, and does not wait for those finds. A signer who is do not contact, unsubscribed or blocklisted gets no find, and an account whose domain is on the workspace blocklist gets none and ends blocklisted, a committee reused within freshDays included. Charged as it runs: the committee run on CommitteeMapping (its AI work, about 4 credits), 1 credit per email found and about 5.2 per phone found. The committee run also queues email finds for up to 6 top stakeholders without an email, on the same spend limit; signerEmails turns off only the signers' finds. Free when the account has a committee run that succeeded within freshDays (30 by default), and a run already open is waited on, never started twice. A signer searched within freshDays (found or not found) is not searched again. Phone finds need the calls or whatsapp feature, except in the LinkedIn connections enrich copies, which find them whatever the calling flags. Needs accounts_committee. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: done, fresh, failed, waiting_credits, spend_scope_exhausted, timed_out or blocklisted, and committeeRunId, signers, emailFindsQueued, phoneFindsQueued and phonesSkippedReason.","cost":{"free":false,"action":"CommitteeMapping","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_committee"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a committee mapped within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365},"maxWaitMinutes":{"description":"How long the step waits for the committee run to end, in minutes, 5 to 1440. Default 180. Past it the step ends with status timed_out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":180,"minimum":5,"maximum":1440},"signerEmails":{"description":"Queue an email find for each signer (economic buyer, approver, executive sponsor) without an email. Default true. The committee run queues its own email finds for up to 6 top stakeholders either way.","type":"boolean","default":true},"signerPhones":{"description":"Queue a phone find for each signer without a phone. Default true. Outside the LinkedIn connections enrich copies it needs the calls or whatsapp feature; without it the step skips phones and says so in phonesSkippedReason.","type":"boolean","default":true}}}},{"type":"account.plan@1","key":"account.plan","version":1,"kind":"ai","title":"Write outreach plan","description":"Starts Ken's outreach plan for the run's account (an account run, or the account of a person or lead run): the touches to each person on its committee over the plan's weeks, titled for this account. Sends nothing: Ken drafts each touch when it comes due. The drafts this step places wait for approval. Steps Ken adds to the plan later may send without it while Send email or Send LinkedIn messages runs on its own (Settings > Ken agent). The step does not wait for the drafts. Charged as it runs: the plan's titles on AccountPlan and each draft on AccountWriter (each priced by its AI work). Its estimate covers the titles and one draft (about 4 credits); every later draft holds against the same spend limit as it comes due, and one that does not fit stays planned for a person to write. Skipped when the account has no research that succeeded (no_research). An account whose plan has not ended keeps it, at no charge (exists). A failure fails the step. Needs accounts_plan. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: started, exists or spend_scope_exhausted (the plan started but kept generic titles), and planId.","cost":{"free":false,"action":"AccountPlan","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_plan"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow plans the account. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"account.research@1","key":"account.research","version":1,"kind":"data","title":"Research account","description":"Researches the run's account (an account run, or the account of a person or lead run) with Kenso's account research: the company's site, news and Ken Search, written up as why now, an angle and a fit score. The step waits until the research run ends, so steps after it can use the research. Charged as it runs (AccountResearch: its AI work, about 12 credits a run, plus the web pages it reads), when the run succeeds. Free when the account has a research run that succeeded within freshDays (30 by default), and a run already open is waited on, never opened twice. Needs linkedin_connections_enrich and accounts_research. In the LinkedIn connections enrich job the job's spend limit bounds it. In any other workflow each research run it opens counts 20 credits, a research run's usual ceiling, against the workflow's credit limits, so creditsPerRun and creditsPerMonth need at least 20. Returns status: done, fresh, failed, waiting_credits, spend_scope_exhausted or timed_out (still running after maxWaitMinutes, 180 by default), and researchId.","cost":{"free":false,"action":"AccountResearch","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_research"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a research run that succeeded within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365},"maxWaitMinutes":{"description":"How long the step waits for the research run to end, in minutes, 5 to 1440. Default 180. Past it the step ends with status timed_out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":180,"minimum":5,"maximum":1440}}}},{"type":"account.set_stage@1","key":"account.set_stage","version":1,"kind":"action","title":"Set account stage","description":"Moves the run's account (an account run, a person run, or a lead with an account) to a stage: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor or do_not_contact. Use it to keep the pipeline current, for example engaged after a reply or meeting_booked after a booking. Onboarding and client make the account a customer, so its domains go on the blocklist. A customer can move to churned, lost, competitor or do_not_contact (its domains stay blocked), never to a stage that unblocks them: the step fails, and a workspace admin makes that move. The change shows on the account timeline with actor workflow. Setting the stage the account already has does nothing, and a stage a person set by hand is left alone. Set from (for example [\"nurture\"]) to move the account only out of those stages: then a stage a person set moves too, because from is the guard, and an account a person already moved to another stage is left alone. Returns from, to and changed. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"New stage: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor or do_not_contact.","type":"string"},"reason":{"description":"Why the workflow moves the account. Shown in the run log.","type":["string","null"],"default":null},"from":{"description":"Move only when the account is in one of these stages, for example [\"nurture\"]. Then a stage a person set moves too, because these stages are the guard. Leave out to move from any stage except one a person set.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["stage"]}},{"type":"ads.add_to_audience@1","key":"ads.add_to_audience","version":1,"kind":"action","title":"Add to an ad audience","description":"Adds the run's lead to this workflow's matched audience on an ad platform (google_ads, meta_ads or linkedin_ads), through the workspace's connected ad account. Each workflow keeps one audience per platform, created the first time with audienceName. Kenso uploads the hashed email of new members on its next audience sync (every 6 hours) and removes anyone who unsubscribes, bounces, is blocklisted or deleted, the same rules as a campaign audience. The audience keeps syncing after the workflow stops, until each window ends: pause or delete it under Settings > Integrations > Ad platforms. Deleted while the workflow runs, its next lead starts a new one. removeAfterDays is a retargeting window: a person leaves the audience that many days after the last run that added them. Works on lead runs (a click or reply signal, a new lead), person runs (that person's newest lead) and any run with leadId, for example {{item.leadId}} in a for-each. Returns adAudienceId, added, and reason when added is false (already_in, no_email, no_lead or library_contact). Needs the ad platform connected with an ad account picked under Settings > Integrations > Ad platforms, and the ad_audiences feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"ad_audiences"}],"inputSchema":{"type":"object","properties":{"provider":{"description":"Ad platform: google_ads, meta_ads or linkedin_ads. A platform Kenso cannot connect yet fails the run. Connect it and pick its ad account under Settings > Integrations > Ad platforms first.","type":"string","enum":["google_ads","meta_ads","linkedin_ads"]},"audienceName":{"description":"Name of the audience Kenso creates on the platform, for example \"Ken clickers\". Used when the workflow's audience is created; changing it later does not rename the audience.","type":"string","minLength":1,"maxLength":200},"removeAfterDays":{"description":"Retargeting window in days (1 to 3650): a person leaves the audience this many days after the last run that added them. Leave out to keep them until they unsubscribe, bounce or are deleted.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"leadId":{"description":"The lead (contact) to add, for example {{item.leadId}} inside a for-each. Leave out to add the run's lead, or on a person run that person's newest lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["provider","audienceName"]}},{"type":"ads.sync_campaign_audience@1","key":"ads.sync_campaign_audience","version":1,"kind":"action","title":"Sync campaign leads to an ad audience","description":"Makes a campaign's whole lead list a matched audience on an ad platform (google_ads, meta_ads or linkedin_ads), through the workspace's connected ad account: the same audience Settings > Integrations > Ad platforms creates for a campaign. Send campaignId (for example {{trigger.campaignId}}; a campaign workflow defaults to its own campaign) or campaignStatuses, for example [\"ready\"] on a daily schedule, to cover every campaign of the workspace in those statuses (active, draft, building, ready, paused, completed, error or archived). A campaign without an audience on that platform gets one, named \"Ken - {campaign name}\", at most 50 per run (the rest are listed in skipped for the next run). The workflow owns its campaigns' audiences: a paused one is resumed, and one a member deleted is created again on the next run, so run the step on chosen campaigns (campaignId) to keep one out. It never deletes. Kenso's audience sync (every 6 hours) uploads the leads' hashed emails, adds new leads and removes anyone who unsubscribes, bounces, is blocklisted or deleted. With enhancedMatching true (meta_ads and linkedin_ads), the audiences also get the leads' hashed personal emails, and on Meta phone numbers, from Kenso's licensed people dataset, so the platform matches more of them, in workspaces Kenso has turned that on for. Returns created, alreadyPresent (campaign, audience id and status) and skipped. Needs the ad platform connected with an ad account picked under Settings > Integrations > Ad platforms, and the ad_audiences feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"ad_audiences"}],"inputSchema":{"type":"object","properties":{"provider":{"description":"Ad platform: google_ads, meta_ads or linkedin_ads. A platform Kenso cannot connect yet fails the run. Connect it and pick its ad account under Settings > Integrations > Ad platforms first.","type":"string","enum":["google_ads","meta_ads","linkedin_ads"]},"campaignId":{"description":"One campaign, for example {{trigger.campaignId}}. Leave out with campaignStatuses, or in a campaign workflow for its own campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"campaignStatuses":{"description":"Every campaign of the workspace in these statuses: active, draft, building, ready, paused, completed, error or archived, for example [\"ready\"]. Use it on a schedule.","type":["array","null"],"items":{"type":"string"},"default":null},"enhancedMatching":{"description":"true: the audiences the step creates or keeps also upload the hashed personal emails (and on meta_ads, phone numbers) Kenso's licensed people dataset holds for the leads, so the platform matches more of them. meta_ads and linkedin_ads only. false (the default) leaves each audience's setting as it is.","type":"boolean","default":false}},"required":["provider"]}},{"type":"ai.agent@1","key":"ai.agent","version":1,"kind":"ai","title":"AI agent","description":"Runs an AI agent toward a goal written in plain words, using read-only Kenso tools (web_fetch for one web page, ken_search_companies and ken_search_people for Kenso Search lookups, email_copy_grade and email_copy_lint for Kenso's copy grade and copy rules, email_copy_sameness for how samey a batch of one prompt's lines is, domain_auth_check for a domain's SPF, DMARC, MX and common DKIM selectors, domain_blocklist_check for Spamhaus DBL, SURBL and URIBL) and returning JSON that matches the returns schema. With workflowTools it can also run up to 5 of the workspace's published workflows that declare an interface, each as a tool that takes the interface inputs, waits up to 30 seconds and returns the run's status and outputs (at most 10 workflow runs per step run, listed in toolRuns). Each of those runs charges its own steps, which creditCap does not cover. It stops after 4 (cheap), 8 (balanced) or 16 (smart) tool rounds or the tier's token cap and returns what it has with truncated = true. Use it for multi-step lookups a single prompt cannot do. Charged once per run by tier (WorkflowAiAgentCheap, WorkflowAiAgentBalanced, WorkflowAiAgentSmart); each email_copy_grade call also takes one unit of the workspace's copy grade limit (20 a minute, 500 a day), like the copy grade in the app.","cost":{"free":false,"action":null,"actionByTier":{"balanced":"WorkflowAiAgentBalanced","cheap":"WorkflowAiAgentCheap","smart":"WorkflowAiAgentSmart"},"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"instructions":{"description":"The goal, in plain words.","type":"string"},"returns":{"description":"JSON schema of the result the agent must return. Leave it out for {\"text\": \"...\"}.","type":["object","null"],"default":null},"tools":{"description":"Tools the agent may use: web_fetch, ken_search_companies, ken_search_people, email_copy_grade, email_copy_lint, email_copy_sameness, domain_auth_check, domain_blocklist_check. None by default.","type":["array","null"],"items":{"type":"string"},"default":null},"tier":{"description":"AI tier: cheap (4 tool rounds), balanced (8, default) or smart (16).","type":"string","default":"balanced","enum":["cheap","balanced","smart"]},"creditCap":{"description":"The most credits this step may cost; the engine checks it against the tier price.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's instructions came from (Knowledge > Prompts). Kenso copies its body into instructions; the step still runs instructions as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"workflowTools":{"description":"Workflows the agent may run as tools, at most 5. Each is a published workflow of this workspace with an interface block: the agent passes the interface inputs as the tool's arguments, Kenso runs the workflow on the run's record and waits up to 30 seconds, and the agent reads its status and outputs. At most 10 workflow runs per step run.","type":["array","null"],"items":{"type":"object","properties":{"workflowId":{"description":"The id of the workflow to run. It must be published and declare an interface, and cannot be the workflow this step is part of.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"name":{"description":"The tool's name for the agent: a lower-case letter, then 2 to 39 lower-case letters, digits or _, unique in the step. Leave it out for wf_ and the workflow's name.","type":["string","null"],"default":null},"description":{"description":"What the tool is for, in plain words. Leave it out for the workflow's own description.","type":["string","null"],"default":null,"maxLength":500}},"required":["workflowId"]},"default":null,"maxItems":5}},"required":["instructions"]}},{"type":"ai.condition@1","key":"ai.condition","version":1,"kind":"ai","title":"AI condition","description":"Answers a yes/no question about the run's record in plain words, for conditions a formula cannot express (for example \"does this company sell to hospitals?\"). Returns result (true for yes) and a one-sentence reason; branch on {{<step>.result}}. Charged once per call (WorkflowAiCondition).","cost":{"free":false,"action":"WorkflowAiCondition","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"question":{"description":"A yes/no question about the record, in plain words.","type":"string"},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]}},"required":["question"]}},{"type":"ai.image@1","key":"ai.image","version":1,"kind":"ai","title":"AI image","description":"Generates one image for the run's record from a prompt, optionally using the lead's profile photo, company logo, the sender logo, a website screenshot or the lead's own image as references, and stores it. It can save the image as the lead's image for a campaign image variable, so the campaign's emails send it. Charged per ready image by the AI work it took (WorkflowAiImage); free on the workspace's own model key; a failed image costs nothing. A test run makes and charges a real image but never saves it. Needs campaign_images.","cost":{"free":false,"action":"WorkflowAiImage","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"campaign_images"}],"inputSchema":{"type":"object","properties":{"prompt":{"description":"What the image shows. Reference record fields with {{...}}. Put text the image must show in double quotes; the spelling check reads it back.","type":"string"},"references":{"description":"Pictures the model works from, taken from the run's lead when it has them: profile_photo, company_logo, sender_logo, website_screenshot, custom_image. A missing one is skipped.","type":["array","null"],"items":{"type":"string"},"default":null},"model":{"description":"Image model: openai/gpt-image-2.6-sunburst (default), openai/gpt-image-2.6-flare, openai/gpt-image-2, google/gemini-nano-banana-2.1 or spacexai/grok-imagine-image-2.0. Only the two GPT Image 2.6 models make animated GIFs.","type":"string","default":"openai/gpt-image-2.6-sunburst"},"size":{"description":"Size: 1024x1024 (default), 1536x1024 or 1024x1536.","type":"string","default":"1024x1024","enum":["1024x1024","1536x1024","1024x1536"]},"quality":{"description":"Quality: low, medium (default) or high.","type":"string","default":"medium","enum":["low","medium","high"]},"spellingCheck":{"description":"Read the image's text back and regenerate once when a quoted string is missing. On by default.","type":"boolean","default":true},"saveToImageVariable":{"description":"Key of a per_prospect image variable of the lead's campaign. When set, the image becomes the lead's image for that variable, so its {{key}} token sends it. Lead runs in a campaign only; a test run never saves it.","type":["string","null"],"default":null},"format":{"description":"still (default) for one image, or gif for an animated GIF. A GIF needs a GPT Image 2.6 model and no references, and costs about a third of a still per frame (at least one still).","type":"string","default":"still","enum":["still","gif"]},"frameCount":{"description":"Frames of an animated GIF, 2 to 16 (default 9). Ignored for a still.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":9},"frameDurationMs":{"description":"Milliseconds each GIF frame shows, 20 to 2000 (default 200), rounded to 10. Ignored for a still.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":200}},"required":["prompt"]}},{"type":"ai.prompt@1","key":"ai.prompt","version":1,"kind":"ai","title":"AI prompt","description":"Sends one prompt about the run's record to an AI model and returns its answer. The answer is an object matching outputSchema when one is given, otherwise {\"text\": \"...\"}. Use it to write, classify or extract one thing per record, for example a first line or a product category. Charged once per call by tier (WorkflowAiPromptCheap, WorkflowAiPromptBalanced, WorkflowAiPromptSmart). In a Bulk import workflow, in a workspace with workflow_sources on, the balanced and smart tiers cost half (WorkflowAiPromptBalancedBulk, WorkflowAiPromptSmartBulk); the cheap tier costs the same. Elsewhere every tier costs its real-time price; a workflow estimate's bulkPriceApplies says which.","cost":{"free":false,"action":null,"actionByTier":{"balanced":"WorkflowAiPromptBalanced","cheap":"WorkflowAiPromptCheap","smart":"WorkflowAiPromptSmart"},"chargeOn":"call","freeOnCustomerKey":false,"bulkActionByTier":{"balanced":"WorkflowAiPromptBalancedBulk","smart":"WorkflowAiPromptSmartBulk"}},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"prompt":{"description":"The prompt. Reference record fields with {{...}}; the run's record is also given to the model.","type":"string"},"outputSchema":{"description":"JSON schema (type object) of the answer. Leave it out for {\"text\": \"...\"}.","type":["object","null"],"default":null},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's prompt came from (Knowledge > Prompts). Kenso copies its body into prompt; the step still runs prompt as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["prompt"]}},{"type":"ai.qualify@1","key":"ai.qualify","version":1,"kind":"ai","title":"Qualify with AI","description":"Qualifies the run's record (an account, a person with their account, or a lead with its company, as in campaign workflows) the way campaign qualification does: who the audience is, what a record must have to qualify and what rules it out, each in plain words and each optional. It scores the record from 0 to 100 (by how to score when given, else by the qualification text or criteria, else by the workspace's ideal customer profile). Returns fit (yes or no against the audience, qualifies and disqualifies when any is given, else true at a score of 70 or more), score and short reasons. Use it to filter or branch before spending on enrichment or outreach. To put a campaign's lead in one of its segments, use campaign.segment@1. Charged once per record (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"criteria":{"description":"What a good fit looks like, in plain words. Leave it out to score against the workspace's ideal customer profile (its company context).","type":["string","null"],"default":null},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]},"instructions":{"description":"Extra guidance for the scoring, for example what to weigh most.","type":["string","null"],"default":null},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's instructions came from (Knowledge > Prompts). Kenso copies its body into instructions; the step still runs instructions as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"audienceDescription":{"description":"Who the audience is, in plain words.","type":["string","null"],"default":null,"maxLength":4000},"qualificationCriteria":{"description":"What a record must have to qualify.","type":["string","null"],"default":null,"maxLength":4000},"disqualificationCriteria":{"description":"What rules a record out.","type":["string","null"],"default":null,"maxLength":4000},"scoringCriteria":{"description":"How to score a record from 0 to 100.","type":["string","null"],"default":null,"maxLength":4000}}}},{"type":"ai.research@1","key":"ai.research","version":1,"kind":"ai","title":"Research account","description":"Researches the run's account (or the account of the run's person or lead, or a lead's own company while it has no account): reads its website and record, then returns a short summary, buying signals, a suggested outreach angle and a 0-100 fit score against the workspace's ideal customer profile. Use it before writing personalized outreach. Charged once per record (WorkflowAiResearch).","cost":{"free":false,"action":"WorkflowAiResearch","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"focus":{"description":"What to look for, for example \"recent funding and sales hiring\". Leave it out for a general account brief.","type":["string","null"],"default":null},"tier":{"description":"AI tier: cheap, balanced (default) or smart.","type":"string","default":"balanced","enum":["cheap","balanced","smart"]},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's focus came from (Knowledge > Prompts). Kenso copies its body into focus; the step still runs focus as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"ai.voice_note@1","key":"ai.voice_note","version":1,"kind":"ai","title":"Voice note","description":"Ken writes and speaks a voice note for the run's person, ready for a LinkedIn, WhatsApp, Facebook or iMessage send step to attach. To send it, give send.linkedin@1 (kind message), send.whatsapp@1, send.facebook@1 (kind message) or send.imessage@1 this whole step as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note), on a message to the same person. The person is the run's person (a person run's person, a lead run's person) unless contactId names one; an account run needs contactId. Ken writes from the person's profile and the workspace's Knowledge; campaignId (default: the run's campaign) files the note and its charge under that campaign. voice is the same object as a LinkedIn voice note sequence step; a reference inside it, such as script {{writer.text}}, is filled in first. With voice.matchLeadLanguage, a script (fixed text) is translated into the person's language when it differs from the voice's. A ready note is charged once (LinkedInVoiceNote; ImessageVoiceNote when iMessage is the workspace's only voice note feature or only send.imessage@1 steps send it), priced by the script and speech work done on Kenso's keys (nothing when the workspace's own keys did it); a failed note costs nothing and returns status failed with failureReason, so the workflow can branch on {{note.status}}. A note only send.imessage@1 steps send (or any note while imessage is the workspace's only voice note feature) goes only once the person has replied on an iMessage thread: until then it fails at once, unwritten and uncharged, with failureReason recipient_must_reply (no thread of their own, or no reply on it) or sms_thread (their thread is SMS), whatever the send step's approval. It fails the same way with imessage_line_owner_left when the line the text goes from has an owner who can't send from it (an admin gives the line a new owner in Delivery), with imessage_line_gone when the line of the thread it would go on can no longer send (a reply on that thread is refused the same way), and with person_refused when the person said no and nothing since takes it back, on a retry of the step too. Before any of those, once the person has a number to text, it fails with phone_opt_out when the number it would go to texted STOP or the person opted out of texts, with do_not_call when a provider the workspace's own key asked flagged the person do not call, and with suppressed:<reason> (such as suppressed:blocklisted) when the person is on the blocklist, on do-not-contact or unsubscribed (or a domain of the run's account is on the blocklist, as send.imessage@1 reads it): a reply to them is refused the same way, except that a member may still answer a person who wrote in the thread when only a provider flagged them do not call. A retried step returns the same note and never charges twice. A note's charge counts toward the workflow's credit limits like any paid step's. It needs the linkedin_voice_notes, whatsapp or imessage feature (any one); a note a send.linkedin@1, send.whatsapp@1 or send.facebook@1 step sends needs linkedin_voice_notes or whatsapp, and one a send.instagram@1 step sends needs instagram and linkedin_voice_notes, so with only imessage on such a workflow does not publish. A test run writes and charges a real note. For an Instagram DM, set channel \"instagram\" and give the step to send.instagram@1: Kenso makes the note as an m4a, which Instagram needs; that needs the instagram and linkedin_voice_notes features, and a workflow where another send step carries a note with channel \"instagram\" does not publish (voice_note_channel_mismatch).","cost":{"free":false,"action":"LinkedInVoiceNote","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"any_flag","key":"linkedin_voice_notes","anyOf":["linkedin_voice_notes","whatsapp","imessage"]}],"inputSchema":{"type":"object","properties":{"voice":{"description":"The voice and the words: the same object as a LinkedIn voice note sequence step.","type":"object","properties":{"provider":{"description":"deepgram or elevenlabs.","type":"string","enum":["deepgram","elevenlabs"]},"voiceId":{"description":"The voice, as the workspace's voice list names it, such as flux-hannah-en. An imported voice needs the workspace's own key for its voice provider.","type":"string"},"speed":{"description":"0.5 to 1.5. Leave it out for the voice's normal speed.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null},"wordsMode":{"description":"ken_writes: Ken writes each note from instructions and the person's profile. script: your words, with {firstName}-style variables.","type":"string","default":"ken_writes","enum":["ken_writes","script"]},"instructions":{"description":"With ken_writes: what the note should say, up to 1,000 characters. Left blank on a note only send.imessage@1 steps send, Ken writes the app's default iMessage note: a short note that continues the conversation where it stands and asks if they are open to a short call.","type":["string","null"],"default":null},"script":{"description":"With script: the words to speak, up to 900 characters. A reference such as {{writer.text}} is filled in before the note is written.","type":["string","null"],"default":null},"model":{"description":"The model that writes the words: haiku or sonnet. Leave it out (or null) for haiku.","type":["string","null"],"default":null,"enum":["haiku","sonnet",null]},"matchLeadLanguage":{"description":"Speak in the person's language when Kenso knows it. With ken_writes, Ken writes the note in that language. With script, Ken translates your words into it first when it differs from the voice's language (the script is read as written in the voice's language), and the translation is part of the note's cost. An ElevenLabs voice keeps the voice; on Deepgram Ken takes a voice of the same gender in that language, and when there is none keeps the voice and its language.","type":"boolean","default":false}},"required":["provider","voiceId"]},"contactId":{"description":"The person the note is for, a workspace person id. Leave it out for the run's person, the one send.linkedin@1, send.whatsapp@1, send.facebook@1 or send.imessage@1 sends to with to record.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"campaignId":{"description":"The campaign to file the note and its credit charge under. Leave it out for the run's campaign, if it has one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"channel":{"description":"Where the note is sent: \"instagram\" for send.instagram@1, which takes an m4a note (Kenso then makes it as m4a; needs the instagram and linkedin_voice_notes features). Leave it out for LinkedIn, WhatsApp, Facebook or iMessage.","type":["string","null"],"default":null,"enum":["instagram",null]}},"required":["voice"]}},{"type":"ai.website_people@1","key":"ai.website_people","version":1,"kind":"ai","title":"Find people on the website","description":"On a place run (a Google Maps place), reads up to 4 pages of the place's website (home, team, about, contact) and returns the people it names with the emails and phones printed next to them, plus the business's general mailboxes and phones. A chain branch, whose website is a location page (aspendental.com/offices/tx/austin), reads that page and the pages under it, never the chain's home page. Each person is added to (or matched in) the workspace's people with the place's domain as their company. Pass data.find_people's people as known to merge both lists; the result's people carry personId for data.find_email, data.find_phone and place.deliver. Pages from Kenso's web archive are free; each page Kenso reads live and the one AI call cost one scrape credit each (WorkflowScrape). A place with no website costs nothing.","cost":{"free":false,"action":"WorkflowScrape","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"known":{"description":"People Ken already found at the place, usually \"{{people.people}}\" from data.find_people. A website person with the same name is matched to them.","type":["array","null"],"items":{"type":"object","properties":{"name":{"description":"The person's full name.","type":"string"},"title":{"description":"Their job title.","type":["string","null"]},"personId":{"description":"The workspace person id. A person without one is left out.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["name"]},"default":null},"maxPages":{"description":"How many pages of the website to read, 1 to 4, the home page included. Default 4.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":4},"tier":{"description":"AI tier: cheap (default) or balanced.","type":"string","default":"cheap","enum":["cheap","balanced"]}}}},{"type":"browser.run@1","key":"browser.run","version":1,"kind":"action","title":"Browser run","description":"Opens a site in a browser and works the task: reads pages, or fills and submits one form as the inbox owner. It starts at startUrl and stays on the site's domain. With canSubmit it types only the inbox name and email, the identity and the answers you give (fields: up to 30, each a label and its exact value, such as a cover note or a Yes on a screening question), each answer word for word into the field that asks its question; a required field none of them fills ends the run blocked, and the submit click is refused while a text field holds anything else. With canSubmit it may also upload up to 5 Knowledge files you uploaded (files: PDF, DOCX, PNG or JPEG, at most 10 MB each) into the form's file fields; a file that cannot go fails the step before any browser opens, at no charge. With canSubmit the plan first waits in Today for the inbox owner, on approval auto too unless the workspace has the workflows_auto_send_email and workflows_auto_send flags, where auto opens the browser without waiting (as a member's own mailbox only in a workflow that member published). Returns status (done, confirmed, unconfirmed, blocked, out_of_browser_time), the result (matching outputSchema when given), quotes with their URLs, screenshots, the submission (what went into each field and the file that went into each file field) and, for watchDays after a submission, the site's replies arrive as browser.mail_received events. Charged per started browser minute plus model tokens. A failed run (runner error, unknown outcome, plan not approved in time) fails the step with browser_run_failed:<reason> and is not charged; the step's onFailure decides what follows. Test runs are simulated, upload and type nothing, and list the planned answers as the submission's fields. Needs the browser_steps feature.","cost":{"free":false,"action":"BrowserRun","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"browser_steps"}],"inputSchema":{"type":"object","properties":{"task":{"description":"What the browser should do, in plain words: what to find, which form to fill and what to bring back. You can use record fields and results from earlier steps.","type":"string","minLength":1,"maxLength":8000},"startUrl":{"description":"The web address the browser opens first. The browser stays on this site, plus any form page the site sends it to.","type":"string","minLength":8,"maxLength":2048,"pattern":"^https?://.+"},"canSubmit":{"description":"Lets the browser submit one form using the inbox and identity below. Off by default, so the browser only reads the site.","type":"boolean","default":false},"approval":{"description":"Whether the inbox owner approves the plan in Today before the browser opens. Required by default. A run that can submit a form waits for that approval on auto too, as an email on auto waits in Today, unless the workspace is allowed to send emails and forms without approval: then auto opens the browser without waiting, except as a member's own mailbox in a workflow that member did not publish. A read-only run never waits.","type":"string","default":"required","enum":["required","auto"]},"inbox":{"description":"The inbox whose name and email go on the form. By default it's the inbox the Send email step uses for this account, and that inbox's owner approves the plan. You can pick another inbox. Needed when the browser can submit a form.","type":"string","default":"owner","pattern":"^(owner|[0-9]{1,18})$"},"identity":{"description":"Who the browser poses as on a form: job title, phone and company. Company defaults to your workspace name. Ken only ever types these details, the inbox's name and email and the answers below. If a required field asks for anything else, the run stops without submitting.","type":["object","null"],"properties":{"title":{"description":"Job title typed into a form that asks for one.","type":["string","null"],"default":null},"phone":{"description":"Phone number typed into a form that asks for one.","type":["string","null"],"default":null},"company":{"description":"Company typed into a form that asks for one. Defaults to your workspace name.","type":["string","null"],"default":null}},"default":null},"outputSchema":{"description":"The fields the result must have, as a JSON schema. Leave it empty for a free-form result.","type":["object","null"],"default":null},"watchDays":{"description":"Days to watch the inbox for the site's reply after the form goes out, 0 to 30. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14,"minimum":0,"maximum":30},"maxMinutes":{"description":"Browser minutes the run may use, 1 to 10. Default 3. A run that reaches the limit stops there and is charged for the minutes it used.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3,"minimum":1,"maximum":10},"files":{"description":"Files the browser may upload into the form it submits, such as a CV: up to 5 Knowledge files you uploaded (PDF, DOCX, PNG or JPEG, at most 10 MB each), each with a label that tells Ken which is which. Only when the browser can submit a form.","type":["array","null"],"items":{"type":"object","properties":{"fileId":{"description":"The id of a Knowledge file you uploaded.","type":"string","minLength":1,"maxLength":18,"pattern":"^[0-9]{1,18}$"},"label":{"description":"What the file is, such as CV. Ken uses it to tell the files apart and to pick the field each one goes into.","type":"string","minLength":1,"maxLength":80}},"required":["fileId","label"]},"default":null,"maxItems":5},"fields":{"description":"Answers the browser may put on the form it submits, next to the inbox and the identity, such as a cover note and screening answers: up to 30, each a label and a value, 8,000 characters for all values together. Ken types each value word for word into the field that asks its question, or picks the matching option on a choice field, and types nothing else. A required field none of them answers, a consent box included, ends the run without submitting. You can use record fields and results from earlier steps. Only when the browser can submit a form.","type":["array","null"],"items":{"type":"object","properties":{"label":{"description":"What the answer is for, as a form might ask it, such as Cover letter or Are you legally authorized to work in the US. Up to 200 characters.","type":"string","minLength":1,"maxLength":200},"value":{"description":"The exact text Ken types, or the option it picks on a choice field, such as Yes. Up to 4,000 characters.","type":"string","minLength":1,"maxLength":4000}},"required":["label","value"]},"default":null,"maxItems":30}},"required":["task","startUrl"]}},{"type":"campaign.ab_test@1","key":"campaign.ab_test","version":1,"kind":"action","title":"Assign A/B variant","description":"Assigns the lead to one A/B variant (A, B, C or D) of its campaign email sequence, picked the way the send planner picks: at random among the active variants, or by the lead's company when the workspace splits variants by company (then the lead needs a verified email before this step, or the step fails). It is stored so every email in the sequence uses that variant. A lead that already has a variant keeps it. Use it in a campaign workflow before enrollment to test sequence versions against each other; pass variants to limit the choice. The sequence must have the same number of active variants on every step. Returns the variant letter. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"variants":{"description":"Sequence variants to choose from (A, B, C, D). Null uses every active variant of the campaign sequence.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"campaign.add_lead@1","key":"campaign.add_lead","version":1,"kind":"action","title":"Add lead to campaign","description":"Adds one lead to a campaign from the fields you give it, the same way an import does: the campaign's dedupe, the blocklist and do-not-contact apply, a new lead reserves lead credits from the plan, and custom variables merge into the lead's (a key new to the campaign joins its catalog with AI context off). On a person, lead or account run, everything the workflow saved on that record travels with the lead as custom variables, and the customVariables you set win over a saved field with the same name. It writes what POST /v1/campaigns/{campaignId}/contacts writes, without an API key. Works on any run, including a schedule or webhook run about no record: map email, firstName, lastName, title, linkedInUrl, companyName, companyDomain and customVariables from earlier steps or from {{item.*}} inside logic.for_each. With no lead field set it adds nobody (invalid_input); to add the run's own person, use person.add_to_campaign@1. A second run with the same email updates the lead instead of adding it twice. Returns leadId, status (created, updated, skipped or failed), sendable, and reason and message when skipped or failed (duplicate, blocklisted, already_contacted, invalid_email, excluded, validation, other). The campaign must be an open, regular campaign of the workspace: a deleted or unknown one fails with campaign_not_found, a trigger-mode one with campaign_trigger_mode, an archived or completed one with campaign_closed, each parking the run in Needs attention, as the plan's lead limit does (lead_limit). Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign the lead is added to: a regular campaign of the workspace, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"email":{"description":"The lead's email. Required unless the campaign is LinkedIn-only, which takes a LinkedIn profile URL instead.","type":["string","null"],"default":null},"firstName":{"description":"Required, as on the API.","type":["string","null"],"default":null},"lastName":{"description":"Required, as on the API.","type":["string","null"],"default":null},"title":{"description":"The lead's job title.","type":["string","null"],"default":null},"linkedInUrl":{"description":"The lead's LinkedIn profile URL (linkedin.com/in/...).","type":["string","null"],"default":null},"companyName":{"description":"The company's name. companyName or companyDomain is required.","type":["string","null"],"default":null},"companyDomain":{"description":"The company's domain, such as acme.com. companyName or companyDomain is required.","type":["string","null"],"default":null},"emailValidity":{"description":"Optional mailbox verdict, as on the API: safe for an email you already verified (qualified on import in a campaign without AI qualification, spending one contact allowance), or verified, risky, catch_all, invalid, unknown. Omitted keeps a stored verdict on an existing email.","type":["string","null"],"default":null},"customVariables":{"description":"Custom variables for the lead, at most 50 keys, such as {\"ph_product\": \"{{item.title}}\"}. Keys are normalized as CSV import columns are; values merge into the lead's existing variables, and a null or empty value clears that key. A key new to the campaign joins its custom-variable catalog with AI context off. A number or true/false is written as text.","type":["object","null"],"default":null}},"required":["campaignId"]}},{"type":"campaign.add_person@1","key":"campaign.add_person","version":1,"kind":"action","title":"Add engager to campaign","description":"Adds the run's person to a campaign as a lead, the way a LinkedIn import does: the campaign's dedupe and do-not-contact apply, and each new lead reserves lead credits from the plan. Runs after trigger.linkedin_post_engagement@2, whose engagement it writes to the lead's variables: linkedin_source (post_reaction, post_comment, post_reply or post_author), linkedin_source_url (the post), linkedin_headline, linkedin_comment and linkedin_post_text (the first 1,000 characters of the post); the last two only when the post is the workspace's own ({{trigger.ownPost}}), never from a third party's pasted post. A person a topic or a watched profile found ({{trigger.topic}} is set) gets linkedin_topic, linkedin_topic_post and linkedin_topic_comment instead: context for the AI only, which no message or email can insert. Everything the workflow saved on the person, such as a score or a written opener, travels with the new lead as custom variables. Returns leadId, created, and reason when created is false (already_in_campaign, not_imported or simulated). The campaign must be an open, regular campaign of the workspace: a deleted one fails with campaign_not_found, a trigger-mode one with campaign_trigger_mode, an archived or completed one with campaign_closed, each parking the run in Needs attention; a run another trigger started fails with no_linkedin_engager; the plan's lead limit parks the run in Needs attention (lead_limit). Needs the LinkedIn signals feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign the person is added to as a lead: a regular campaign of the workspace, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["campaignId"]}},{"type":"campaign.ai_segments@1","key":"campaign.ai_segments","version":1,"kind":"ai","title":"Assign AI segment","description":"Assigns the lead to one of its campaign's segments with an LLM, using the segment names and descriptions set on the campaign and the lead's person, company and website data. Use it in a campaign workflow after enrichment and before personalization, when the campaign has two or more AI segments. Leads are classified in batches of up to 250 per model call. Returns the segment id, its name and a one-sentence reason, and writes the assignment to the lead. Costs one WorkflowAiSegments credit unit per lead assigned; a campaign with a single segment assigns it without a model call and costs nothing.","cost":{"free":false,"action":"WorkflowAiSegments","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"tier":{"description":"AI tier: cheap, balanced or smart. The campaign's segmentation model setting picks the model.","type":"string","default":"cheap"}}}},{"type":"campaign.enroll@1","key":"campaign.enroll","version":1,"kind":"action","title":"Enroll in campaign","description":"Campaign workflows only. Hands the lead to the campaign's send path: checks that the campaign would send it (safe email, active segment, the copy it needs, campaign sending) and asks the Kenso sequencer to plan it today. This step never sends an email itself, and the campaign also sends ready leads on its own schedule. Returns enrolled and a reason when the lead was not enrolled. With waitForFirstSend the run waits up to 14 days for the lead's first email (not when it already went out). Use it last, after protect, sequence and review. Free here: sends are priced by the campaign's own send path. Never retried automatically. With targetCampaignId (workspaces with sequences with conditions) the step moves the lead instead: it stops the lead's sequence in this campaign, adds the lead to that campaign (the copy the inbox's enroll in another campaign makes, so dedupe, do not contact and the blocklist apply) and enrolls it there; the output adds movedToCampaignId and movedLeadId. A lead that cannot go there (no verified email, an excluded country) is not enrolled, with the reason, and its sequence here stays stopped. Running it again after a failure does not add the lead twice.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"waitForFirstSend":{"description":"Wait until the campaign sends the lead's first email (up to 14 days) before the next step. Default false. Ignored with targetCampaignId.","type":"boolean","default":false},"targetCampaignId":{"description":"Move the lead to this campaign instead: another campaign of the workspace (needs sequences with conditions). Its sequence in this campaign stops, then it is added to that campaign and enrolled there. Left out: enroll in this campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"campaign.manual_segments@1","key":"campaign.manual_segments","version":1,"kind":"action","title":"Assign segment by rules","description":"Assigns the lead to the first of its campaign's manual segments whose filter rules match the lead (the same rules the campaign's segment filter applies), in segment order. Use it in a campaign workflow when segments are defined by rules such as job title, industry or company size rather than by AI. A lead already in a non-default segment keeps it unless overwriteExisting is true. Returns the segment id and name, or nulls when no rules match. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"overwriteExisting":{"description":"When true, a lead already in a non-default segment moves to the first matching segment. When false it keeps its segment.","type":"boolean","default":false}}}},{"type":"campaign.placement_test@1","key":"campaign.placement_test","version":1,"kind":"action","title":"Run inbox placement test","description":"Starts an inbox placement test (seed inboxes) for the campaign's sending domain with the campaign's own email copy, then waits up to 2 days for the result. It runs once per campaign, not per lead: when a test for the campaign is running or finished in the last 7 days, every lead's run reuses it. Use it before a launch or a promote step to gate sending on deliverability. Returns the test id, its status and the inbox rate (0 to 1). Free in Kenso credits; never retried automatically.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object"}},{"type":"campaign.promote@1","key":"campaign.promote","version":1,"kind":"action","title":"Promote to Accounts","description":"Promote to Accounts: turns the record's company (a lead of the campaign, or a person) into an account you work 1:1. Finds the account by the company or work-email domain, or creates it at the given stage (warming by default; Warming accounts are skipped by campaigns that protect account plays), then adds the person as an engaged, priority 1 member. For a lead it is the inbox's Promote to Accounts: an existing account moves forward to the stage, and every campaign sequence at the company stops, in every campaign of the workspace (not an unsubscribe: the person can still reply), so the campaigns stop emailing the company you now work 1:1. If that stop fails, the step fails and retries before any later step runs. Running it again reuses the same account. Returns accountId, created, and for a lead sequenceStop and sequencesStopped. Use it after a qualification branch for hot leads. Free: it queues no account research, so add ai.research after it for a research brief.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"Stage of the promoted account: researching, warming (default) or engaged. A new account starts at it. For a lead, an existing account moves forward to it (an active play never moves back, and a stage a person pinned stays); a person's existing account keeps its stage.","type":"string","default":"warming"}}}},{"type":"campaign.protect@1","key":"campaign.protect","version":1,"kind":"action","title":"Skip people in account plays","description":"Campaign workflows only (the record is a lead of the campaign). Checks whether the lead is a member of, or (with wholeCompany) works at, an account in an active 1:1 play: stage Warming, Engaged or Meeting booked. Returns protected = true with a reason naming the account, or protected = false. It changes nothing itself: guard the steps after it with when: \"{{protect.protected}} == false\". It does not stop the campaign's own schedule from mailing a ready lead until account-play suppression ships. Put it first in every campaign workflow, before qualification, so a protected lead costs nothing. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"wholeCompany":{"description":"Also skip the lead when their company (email or company domain) is an active account, not only when they are a member of one. Default true.","type":"boolean","default":true}}}},{"type":"campaign.refill@1","key":"campaign.refill","version":1,"kind":"action","title":"Refill from Search","description":"Campaign workflows only, on a schedule (the Keep this campaign full template runs it every hour). Keeps the campaign full: counts the ready leads still waiting for their first email (on a LinkedIn-only campaign, for their connection request) and, when they drop below minActiveLeads (default 3 days of the campaign's daily send capacity, at least 50), imports up to refillSize (default 1 day of capacity) net-new Kenso Search people matching filters into the campaign. Duplicates, the workspace's duplicate rules, the recently-emailed window and the blocklist apply as on any Search import, and the new leads go through the campaign's own pipeline and review before anything is sent; the step never sends. It imports nothing while an import into the campaign is still running or the last refill's leads are still being processed, while the campaign is not sending, or past maxLeadsPerDay (default 500), maxLeadsPerWeek (default 2000, last 7 days), monthlyLeadBudget (default 25% of the plan's monthly leads) or the plan's lead limit. After two refills in a row found nobody new, it turns the workflow off with reason exhausted (turn it back on, or edit the filters and publish, to try again); a deleted or archived campaign turns it off too. Returns outcome, activeLeads, threshold, requested, importId and the leads added today, this week and this month. Free in workflow credits: each imported lead takes one lead credit inside the import, like any Search import. Publishing it needs the workspace admin role (or Kenso staff, who must fill requestedBy), plus Search view, Campaigns edit and Import.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"campaign_lead_refill"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The Kenso Search people filters to import from, the peopleFilters shape of POST /v1/search/imports (copy them from a saved search). Required; publish refuses an empty object.","type":["object","null"],"default":null},"savedSearchId":{"description":"The saved search the filters were copied from. A label only: the step imports with filters, never re-reads the saved search.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"savedSearchName":{"description":"The saved search's name, shown with the step. A label only.","type":["string","null"],"default":null,"maxLength":200},"minActiveLeads":{"description":"Refill when the campaign's active leads drop below this. Leave it out for 3 days of the campaign's daily send capacity (at least 50).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"refillSize":{"description":"Leads to ask Kenso Search for in one refill, 1 to 5000. Leave it out for 1 day of the campaign's daily send capacity (at least 25).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"maxLeadsPerDay":{"description":"Most leads refills add in one UTC day. Default 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":500},"maxLeadsPerWeek":{"description":"Most leads refills add in the last 7 days. Default 2000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":2000},"monthlyLeadBudget":{"description":"Most leads refills add in one UTC calendar month; no import goes past it. Leave it out for 25% of the plan's monthly lead allowance (an unlimited plan must set it).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"requestedBy":{"description":"Who asked for refill on this campaign, such as \"Jane Doe (client) on the 2026-10-19 call\". Kenso staff must set it when they turn it on for a client.","type":["string","null"],"default":null,"maxLength":300}}}},{"type":"campaign.review@1","key":"campaign.review","version":1,"kind":"human","title":"Approve in batches","description":"Campaign workflows only. A person approves the lead, in batches, before the next steps run; the step waits up to 30 days for the decision. With campaign batches on for the workspace, the lead joins the campaign's open batch for this step (batchSize leads: 25, 50 or 100, default 50; a full batch closes and the next lead opens the next one), and while the workflow has this step, live or turned off, the campaign sends no lead its first email until the lead's batch is approved (leads it already emailed keep their follow-ups). A person approves the whole batch after reading Ken's samples (samples: \"5\", \"10\" or \"all\"), and the step returns approved = true with batchId and approvedBy (the approver's name). clientApproval is saved on the batch for the external approval link, which is not live yet: the team approves every batch until it is. Without campaign batches the campaign's own schedule does not wait for the step, and the campaign's external approval draft decides for every lead: no draft passes at once with approved = true and skipped = true; an approved draft passes; a draft sent back with changes gives approved = false. Use it after sequence and before enroll, and guard the next steps with when: \"{{review.approved}} == true\". Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"batchSize":{"description":"Leads per batch: 25, 50 (default) or 100. A full batch closes and the next lead opens the next batch.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"enum":[25,50,100]},"samples":{"description":"How many samples Ken shows first: \"5\" (default), \"10\" or \"all\" (every email in the batch).","type":"string","default":"5","enum":["5","10","all"]},"clientApproval":{"description":"Send the batch to your client to approve on the external approval link. Default false. Saved on the batch; the link is not live yet, so the team approves until it is.","type":"boolean","default":false}}}},{"type":"campaign.segment@1","key":"campaign.segment","version":1,"kind":"ai","title":"Assign segment","description":"Puts the lead in one of its campaign's segments the way the campaign's Settings do: the rule segments first, top to bottom, and the first whose rules match the lead gets it; if none matches and the campaign has AI segments, the AI picks the one whose description fits the lead best (the default segment included); otherwise the lead stays in the default segment. Use it in a campaign workflow after enrichment and before personalization, in place of campaign.manual_segments and campaign.ai_segments. A lead already in a non-default segment keeps it unless overwriteExisting is true. Returns the segment id and name, assignedBy (rules, ai, kept, or none when no rule matched and the campaign has no AI segment besides the default) and the AI's reason. Free for a lead placed by rules, kept, or assigned without a model call (a campaign with one AI segment candidate); one WorkflowAiSegments credit unit for a lead the AI places. Leads are collected for up to 15 minutes and run in batches of up to 250, so the AI classifies up to 250 per model call.","cost":{"free":false,"action":"WorkflowAiSegments","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"overwriteExisting":{"description":"When true, a lead already in a non-default segment is placed again: rules first, then the AI, else the default segment. When false it keeps its segment, and the step is free for it.","type":"boolean","default":false}}}},{"type":"campaign.send_step@1","key":"campaign.send_step","version":1,"kind":"action","title":"Send campaign email","description":"Campaign workflows with sequences with conditions only (the record is a lead of the campaign). Releases one email of the campaign's sequence with conditions (sequenceStepId, written when the campaign launches) to the campaign's own sender: the email goes out from the campaign's mailboxes on its schedule, within its daily limits, with its tracking and personalization, as any campaign email. The step never sends anything itself; it waits, with no time limit, until the email is sent, then returns status sent, sequenceStepId and sentAt. A lead the campaign cannot email (unsubscribed, replied, bounced, stopped) is never sent the email, and the run ends once the campaign completes or is deleted, or the lead leaves it. Launch adds it for every email of the tree; do not add it by hand. Free here: sends are priced by the campaign's own send path. Never retried automatically.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"sequence_conditions"}],"inputSchema":{"type":"object","properties":{"sequenceStepId":{"description":"The email_sequence_step the campaign sends: a step of the campaign's sequence with conditions, written at launch.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["sequenceStepId"]}},{"type":"campaign.sequence@1","key":"campaign.sequence","version":1,"kind":"ai","title":"Write personalized sequence","description":"Campaign workflows only. Writes the lead's personalized copy for every step of the campaign's email sequence with the campaign's own prompts (the personalization stage of the campaign pipeline). Returns steps (how many sequence steps have copy) and generated (false when the lead already had copy). Leads are batched (up to 400 per call, flushed within 12 hours and nightly). Use it after protect and before review and enroll. A lead that already has copy is not written again, and a campaign without personalization prompts has nothing to write (generated = false). The copy is charged as AI personalization at the campaign's normal price, like the campaign pipeline; the step adds no charge of its own, but that spend counts toward the workflow's spend limits, which hold the step before it writes. Estimates show that price as a line charged by the campaign (variable when the estimate has no workflow, so no campaign). A workspace without credits fails with a setup error.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"tier":{"description":"AI tier the copy is written on: cheap, balanced (default) or smart. The campaign's own personalization settings pick the model today.","type":"string","default":"balanced"}}}},{"type":"campaign.skip_gateways@1","key":"campaign.skip_gateways","version":1,"kind":"action","title":"Skip gateways and email providers","description":"Campaign workflows only (the record is a lead of the campaign). Checks the email the campaign would send the lead (its first Safe address) for the security gateway in front of its domain (Proofpoint, Mimecast, ...) and its email provider (Google Workspace, Gmail, Microsoft 365, ...). When the gateway is in gateways or the provider is in emailProviders, it stops the campaign's email to the lead and cancels its queued emails: email only, so the lead's LinkedIn and call steps go on, and the run goes on to the next step. Returns skipped, gateway, emailProvider, matched (gateway or email_provider; a gateway match wins), checked and reason. While the domain is still being checked (gateways ticked: the gateway is pending; only providers ticked: the provider is pending), the step waits and tries again every 5 minutes, up to 24 hours, then passes with checked = false. A lead with no email the campaign would send to passes with checked = false. Publishing the workflow also applies newly ticked values to the leads already in the campaign, and unticking a value lets their email go out again. Put it right after protect, before qualification, so a skipped lead costs nothing; guard email-only paid steps with when: \"{{skip_gateways.skipped}} == false\". Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"gateways":{"description":"Security gateway slugs to skip, such as proofpoint, mimecast, barracuda and cisco_secure_email. Default none.","type":["array","null"],"items":{"type":"string"},"default":null},"emailProviders":{"description":"Email provider (mailbox host) slugs to skip, such as gmail, google_workspace or microsoft_365. Default none.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"clay.enrich@1","key":"clay.enrich","version":1,"kind":"action","title":"Enrich with Clay","description":"Sends the record to one of your Clay tables through its webhook source and waits for Clay to send the enriched row back. In Clay, add an HTTP API enrichment column to that table: method POST, URL the row's kenCallbackUrl column, body a JSON object of the columns you want back, and set it to run after a delay of at least 10 seconds. Each row Kenso sends also carries kenIdempotencyKey; turn on Clay's auto-dedupe on that column so a retried send never makes a second row. When Clay posts back, the step succeeds with status enriched and the posted object under fields; later steps read {{<step>.fields.<column>}}. If nothing arrives within waitMinutes (default 60) the step fails; add onFailure: \"continue\" to let the run go on without the fields. Only a 429 from Clay is retried: any other failure after the row was sent could mean Clay stored it, so it is not sent again. Free: you pay Clay for the enrichment.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"webhookUrl":{"description":"The Clay table's webhook source URL (Clay > table > Sources > Webhook). Store it as a workspace secret and reference it: {{secrets.CLAY_WEBHOOK_URL}}.","type":"string"},"fields":{"description":"The row to send: an object whose top-level keys become Clay columns. Values can reference the record, e.g. {\"email\": \"{{lead.email}}\", \"domain\": \"{{lead.companyDomain}}\"}. The keys kenCallbackUrl and kenIdempotencyKey are reserved.","type":"object"},"authToken":{"description":"The webhook source's auth token, sent as x-clay-webhook-auth. Store it as a secret: {{secrets.CLAY_WEBHOOK_TOKEN}}.","type":["string","null"],"default":null},"waitMinutes":{"description":"How long to wait for Clay's callback, 1 to 10080 minutes (7 days). Default 60. After that the step fails; add onFailure: \"continue\" to go on without the fields.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":60}},"required":["webhookUrl","fields"]}},{"type":"code.run@1","key":"code.run","version":1,"kind":"code","title":"Run code","description":"Runs your JavaScript or Python on each record inside an isolated sandbox. The code gets `inputs` (the object you build from references) and `ctx`, returns a JSON object, and may call `ctx.skip(reason)` to end the run as skipped. console.log and print lines land in the step log (50 lines per record). Preinstalled: lodash, date-fns, zod (JavaScript); requests, python-dateutil (Python). No network unless allowedHosts lists the hosts (HTTPS only). Secrets are environment variables named in `secrets`, except a header-only secret: it never enters the sandbox, and the network adds it as its header on requests to its host, which allowedHosts must list. Limits: 30 s and 256 MB per record, 256 KB output. Free. A record whose code may have run is never run again: it fails code_unknown_outcome, so check the target before retrying it by hand. In a test run, code with allowedHosts is simulated (output {}) unless the test names the step in liveSteps. Needs the workflows_code feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_code"}],"inputSchema":{"type":"object","properties":{"language":{"description":"javascript or python.","type":"string","enum":["javascript","python"]},"code":{"description":"JavaScript: export default function run(inputs, ctx). Python: def run(inputs, ctx). Return a JSON object; ctx.skip('reason') ends the run as skipped. Never rendered: put references in inputs. At most 65,536 characters.","type":"string","minLength":1,"maxLength":65536},"inputs":{"description":"The object the code receives as inputs. Reference record fields and earlier steps with {{...}} here.","type":["object","null"],"default":null},"outputSchema":{"description":"JSON schema (type object) the returned object must match. Leave it out to accept any object.","type":["object","null"],"default":null},"allowedHosts":{"description":"Hostnames the code may reach over HTTPS, at most 20 (api.example.com, or *.example.com for its subdomains). Leave it out for no network. Kenso's own domains, IP addresses and localhost are refused.","type":["array","null"],"items":{"type":"string","pattern":"^(\\*\\.)?([a-z0-9-]+\\.)+[a-z]{2,}$"},"default":null,"maxItems":20},"secrets":{"description":"Workspace secret names (2 to 64 uppercase letters, digits and _, starting with a letter), at most 10, given to the code as environment variables (process.env.NAME, os.environ['NAME']). Each must exist to publish.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10}},"required":["language","code"]}},{"type":"connection.group@1","key":"connection.group","version":1,"kind":"ai","title":"Sort connection","description":"Sorts the run's person, an imported LinkedIn connection, into buyer, partner or other with one cheap-tier model call over the workspace's ideal customer profile and every role the person holds or held (title, headline, ICP score, current and past companies from their connection rows on every seat). A buyer gets a tier: 1 when the person can sign or decide at an ICP-fit company (a current founder or executive role there, or the model says so), else 2. A partner gets its intro targets: the ICP-fit companies among their roles. Every person gets their warm paths: current advisor, board or investor seats at ICP-fit companies. Ken's own relationship suggestion wins: lead makes a buyer; any other suggestion keeps the person out of buyer, and an other then carries the suggestion's kind and reason. The group, reason and tier are written onto every connection row of the person in the workspace, and the role fits replace the person's earlier ones. A person sorted within the last 90 days with no new current company is copied at no charge. Needs LinkedIn connections enrich (linkedin_connections_enrich). Returns group, reasonKind, tier, warmPaths, introTargets and status (grouped, reused or failed). Charged once per answer (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow sorts the connection. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"crm.create_opportunity@1","key":"crm.create_opportunity","version":1,"kind":"action","title":"Create CRM opportunity","description":"Opens the deal for the run's account in the workspace's connected CRM. When Kenso's deal sync is on and the deal goes to its pipeline, Kenso keeps one deal per opportunity: if the account's open opportunity already has a CRM deal, the step returns that deal with created false and writes nothing; otherwise it creates the deal and links it to that opportunity, so the deal sync never opens a second one. The deal observer then copies the step's stage, name and amount into the opportunity. With no open opportunity, deal sync off or another pipeline, every run creates a new deal: when the run can repeat, put it after a crm.lookup@1 on deal or a logic.branch@1. stage is the CRM's stage id, required: a HubSpot dealstage id or a Salesforce StageName, as listed by the CRM connection's pipelines (GET /v1/crm-connections/{connectionId}/pipelines); a wrong id comes back as crm_rejected. pipelineId defaults to the pipeline in the workspace's CRM settings. name defaults to the run record's company name (account.name or lead.companyName) unless fields sets the deal name. The deal is associated with the CRM company and contact Kenso has synced for the run's record (its account or company domain, its person or email), or the companyExternalId and contactExternalId you send; none found means a deal with no company or contact. amount, closeDate (yyyy-MM-dd; Salesforce defaults it to 30 days out) and fields (Kenso catalog keys such as opportunity.next_step, or raw CRM api names) set the rest; a fields value that is null or blank for the run's record is skipped and listed in fieldsSkipped. A failure while the CRM creates the deal is not retried: it goes to Needs attention as crm_unknown_outcome, so check the CRM for the deal before re-running. A rate limit (Kenso's or the CRM's) or an outage before the create also goes to Needs attention, and re-running then is safe because nothing was written. Returns externalId, externalUrl, fieldsSkipped, created and opportunityId (the Kenso opportunity the deal is linked to, else null). Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"stage":{"description":"The CRM's stage id for the new deal: a HubSpot dealstage id or a Salesforce StageName, from the CRM connection's pipelines (GET /v1/crm-connections/{connectionId}/pipelines).","type":"string"},"name":{"description":"The deal name. Defaults to a deal name set in fields, else the run record's company name (account.name or lead.companyName).","type":["string","null"],"default":null},"amount":{"description":"The deal amount, zero or more, in the CRM account's currency.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"closeDate":{"description":"The expected close date, yyyy-MM-dd. Salesforce defaults it to 30 days from today.","type":["string","null"],"format":"date","default":null},"pipelineId":{"description":"The CRM pipeline id. Defaults to the pipeline chosen in the workspace's CRM settings, the one Kenso's deal sync uses.","type":["string","null"],"default":null},"companyExternalId":{"description":"The CRM company to associate the deal with. Defaults to the CRM company Kenso has synced for the run record's account or company domain; none means no company.","type":["string","null"],"default":null},"contactExternalId":{"description":"The CRM contact to associate the deal with. Defaults to the CRM contact Kenso has synced for the run record's person or email; none means no contact.","type":["string","null"],"default":null},"fields":{"description":"Extra deal fields. Keys are Kenso catalog keys (opportunity.next_step, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. stage, name, pipelineId, amount and closeDate win over the same field here. A value that is null or blank for the run's record is skipped and listed in fieldsSkipped.","type":["object","null"],"default":null}},"required":["stage"]}},{"type":"crm.lookup@1","key":"crm.lookup","version":1,"kind":"action","title":"Look up CRM record","description":"Looks up one company, contact or deal in the workspace's connected CRM and returns it. Find a contact by email, a company by domain, or any record by its CRM externalId (the only way to find a deal); send at most one of the three. With none, a contact lookup uses the run record's email (person.email or lead.email) and a company lookup the record's domain (account.primaryDomain or lead.companyDomain). Kenso checks the CRM records it already synced first, then asks the CRM. Returns found, externalId, externalUrl, fields (the record's fields by CRM api name, plus $email, $name, $domain and $owner_id) and the Kenso accountId and personId the record is linked to. found=false is a success, not a failure: branch on {{lookup.found}}. Writes nothing to the CRM. Needs a connected CRM and the ingestion feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to look up: company, contact or deal.","type":"string"},"externalId":{"description":"The CRM record id. The only key a deal lookup accepts.","type":["string","null"],"default":null},"email":{"description":"Contact email. Omit every key and a contact lookup uses the run record's email (person.email or lead.email).","type":["string","null"],"default":null},"domain":{"description":"Company domain, for example acme.com. Omit every key and a company lookup uses the run record's domain (account.primaryDomain or lead.companyDomain).","type":["string","null"],"default":null}},"required":["objectType"]}},{"type":"crm.update@1","key":"crm.update","version":1,"kind":"action","title":"Update CRM record","description":"Updates fields on one company, contact or deal that already exists in the workspace's connected CRM; it never creates a record (use crm.upsert@1 for that). Name the record with externalId (the only key for a deal, for example {{lookup.externalId}}), a contact's email or a company's domain; with none, Kenso updates the CRM record it has synced for the run's record: the person's or lead's contact, the account's or lead's company, or a person's company by its domain. A record Kenso has not synced fails with crm_not_found: run crm.upsert@1 first. fields holds the values to write, at least one: Kenso catalog keys such as person.title or opportunity.amount, translated through the workspace's field mappings (Settings > Integrations > CRM > Field mappings), or raw CRM api names. A Kenso key with no mapping fails the step with field_not_mapped, unless skipUnmapped is true: then it is left out. A value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped, as is a Kenso field (ken.*) the CRM does not have yet: Kenso adds its fields to the CRM when sync is turned on for the object. onlyWhenBlank lists fields keys to write only where the CRM record has no value yet; Kenso reads the record first and lists each value it kept in fieldsKept. When every value already matches what Kenso last wrote and what the CRM last showed, or every value was skipped or kept, the step writes nothing and returns changed=false. Returns externalId, externalUrl, changed, fieldsSkipped and fieldsKept. Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to update: company, contact or deal.","type":"string"},"fields":{"description":"Values to write, at least one. Keys are Kenso catalog keys (person.title, account.name, opportunity.amount, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. Values are strings, numbers or booleans; a value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped.","type":"object"},"externalId":{"description":"The CRM record id to update, for example {{lookup.externalId}}. The only key a deal update accepts.","type":["string","null"],"default":null},"email":{"description":"Contacts only: the email of the contact to update. Kenso's synced CRM records first, then the CRM's search.","type":["string","null"],"default":null},"domain":{"description":"Companies only: the domain of the company to update, for example acme.com. Kenso's synced CRM records first, then the CRM's search.","type":["string","null"],"default":null},"onlyWhenBlank":{"description":"fields keys, as written, to write only where the CRM record has no value yet: Kenso reads the record from the CRM first, keeps a value it already has and lists that key in fieldsKept. Each must be a fields key. Omit to write every value.","type":["array","null"],"items":{"type":"string"},"default":null},"skipUnmapped":{"description":"True: a Kenso catalog key with no enabled Ken-to-CRM field mapping is left out of the write and listed in fieldsSkipped, instead of failing the step with field_not_mapped, so one workflow writes whichever fields each CRM maps. Default false.","type":"boolean","default":false}},"required":["objectType","fields"]}},{"type":"crm.upsert@1","key":"crm.upsert","version":1,"kind":"action","title":"Create or update CRM record","description":"Creates or updates one company or contact in the workspace's connected CRM. A company is matched by domain and a contact by email, by default the run record's (account.primaryDomain or lead.companyDomain; person.email or lead.email); send externalId to update one known record instead, for example {{lookup.externalId}}. fields holds the values to write: Kenso catalog keys such as person.title or account.name, translated through the workspace's field mappings (Settings > Integrations > CRM > Field mappings; only mappings Kenso writes, direction ken or both, count: account.industry is CRM-owned by default), or raw CRM api names. A value that is null or blank for the run's record (a lead with no last name) is skipped, never written as a clear, and listed in fieldsSkipped. The record's own contact also gets the record's first and last name when those are mapped and Kenso has not synced that contact yet. A re-run updates the record an earlier run wrote (Kenso's synced row first, then the CRM's match by key) instead of creating a duplicate. associateCompany (the record's own contact, default true) links the contact to the CRM company with the record's company domain when the CRM has one; it never creates a company. Returns externalId, externalUrl, created, objectType and fieldsSkipped. Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to write: company or contact.","type":"string"},"externalId":{"description":"The CRM record id to update. When set, email and domain are not used to find the record.","type":["string","null"],"default":null},"email":{"description":"Contact email, the contact's upsert key. Defaults to the run record's email (person.email or lead.email).","type":["string","null"],"default":null},"domain":{"description":"Company domain, the company's upsert key, for example acme.com. Defaults to the run record's domain (account.primaryDomain or lead.companyDomain).","type":["string","null"],"default":null},"fields":{"description":"Values to write. Keys are Kenso catalog keys (person.title, account.name, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. Values are strings, numbers or booleans; a value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped.","type":["object","null"],"default":null},"associateCompany":{"description":"Contacts only: associate the contact with the CRM company that has the record's company domain, when the CRM has one. Never creates a company. Default true.","type":"boolean","default":true}},"required":["objectType"]}},{"type":"data.apify_actor@1","key":"data.apify_actor","version":1,"kind":"data","title":"Run an Apify actor","description":"Runs an Apify Store actor (a scraper such as aitorsm/eventbrite or maximedupre/linkedin-events) on the workspace's own Apify API token, waits for the run to finish, and returns its dataset items. It returns up to maxItems of them as items. Set the actor's input as its Input tab in Apify Console shows it; relativeDates sets date inputs relative to the run day, so a weekly run always searches ahead. The run bills the workspace's Apify account, never Kenso's, and Kenso charges no credits. Needs an Apify API token saved under Settings > Integrations > Apify: without one the step fails missing_key. A rejected token fails invalid_key, an account out of credits insufficient_credits, a run that outlives timeoutSecs timeout, and a run that fails run_failed. It is never started twice for one step, so a failed run waits for the next schedule. In a test run it is simulated and returns the example. Use data.suggest_events@1 after it to turn event items into suggested events.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"apify"}],"inputSchema":{"type":"object","properties":{"actorId":{"description":"The Apify Store actor to run: username/actor-name as the Store shows it (aitorsm/eventbrite), username~actor-name, or the actor's id.","type":"string","minLength":1,"maxLength":201},"input":{"description":"The actor's input, as its Input tab in Apify Console shows it in JSON. Leave it out to run with the actor's defaults.","type":["object","null"],"default":null},"relativeDates":{"description":"Input properties to set to a date relative to the run's day (UTC, YYYY-MM-DD): the property name, then the days from today, e.g. {\"startDate\": 1, \"endDate\": 90}. Each overwrites the same property in input. -366 to 366.","type":["object","null"],"additionalProperties":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"maxItems":{"description":"The most dataset items to read, 1 to 200. Also passed to Apify as the run's maxItems, which caps what a pay-per-result actor charges. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50},"timeoutSecs":{"description":"How long the run may take, 30 to 600 seconds. Apify stops it then, and the step fails timeout. Default 300.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":300},"fields":{"description":"Dataset fields to keep in the output, at most 50. Leave it out to keep every field.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":50},"maxChargeUsd":{"description":"The most the run may charge for a pay-per-event actor, in US dollars, 0.01 to 100 (Apify's maxTotalChargeUsd). Leave it out for the actor's own limit.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null}},"required":["actorId"]}},{"type":"data.check_whatsapp@1","key":"data.check_whatsapp","version":1,"kind":"data","title":"Check WhatsApp","description":"Checks whether the run's person is on WhatsApp, using only the numbers Kenso already has for them: pair it with data.find_phone@1 to find a number first. Set personId to check another workspace person. Ken asks WhatsApp through the cache, else through the account's sender WhatsApp account inside its daily check budget. Returns onWhatsApp: \"true\", \"false\" or \"unknown\", and reason: cached or checked when it knows, else no_person, no_phone, opted_out, no_sender (no connected WhatsApp account), held (the check budget is used up, or the account that asks is paused; try later) or failed; phone is the number that answered. Set from to check through one WhatsApp account. A paused account is still the one that asks: the step does not move to another account and does not fail, it answers unknown with reason held (a cached answer still comes back), except under the automatic low reply rate pause, which still checks. Needs the whatsapp feature. Free. In a test run the step is simulated.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"whatsapp"}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Check this workspace person instead of the run's own lead or person: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"from":{"description":"Check through this WhatsApp account of the workspace. Left out, or not a connected account: the person's account's Sends from WhatsApp account, else its owner's, else the workspace's first connected one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.enrich@1","key":"data.enrich","version":1,"kind":"data","title":"Enrich","description":"Looks up the run's record in Kenso Search: the company by its domain, and for a person or lead also the person by LinkedIn URL. Use it to fill firmographics (industry, headcount, location, funding) and the person's current title and seniority before qualifying or writing copy. Returns company, person and found. Costs one enrich credit when Kenso Search has the company or the person; nothing when it has neither. With include [\"technologies\"] it also returns the company's technologies (name, category, first and last detected) from the workspace's own BuiltWith key, which costs Kenso credits nothing and one BuiltWith credit per lookup. With include [\"brand\"] it also returns the company's brand (name, description, logos, colors, fonts) from the workspace's own Context.dev key, which costs Kenso credits nothing and up to 20 Context.dev credits per company (10 for the brand, 10 for the fonts). With include [\"crunchbase\"] it also returns the company's Crunchbase profile (funding total, latest round type, amount and date, funding stage, investors, headcount range, headquarters, categories, founding date) from the workspace's own Crunchbase key, which costs Kenso credits nothing; fields outside the workspace's Crunchbase package come back empty. Until the provider is turned on for the workspace and a working key is connected, the run waits in Needs attention. When the workspace has its own MoltSets key, a person or lead is looked up there first (by LinkedIn URL, else name and company), which costs Kenso credits nothing and one MoltSets record; a miss falls back to Kenso Search. source says which one answered.","cost":{"free":false,"action":"WorkflowEnrich","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"fields":{"description":"Kenso Search fields to keep, e.g. [\"industry\", \"employeesCount\", \"headline\"]. Omit to return every field.","type":["array","null"],"items":{"type":"string"}},"include":{"description":"Extra data to add. \"technologies\": the company's technologies from the workspace's own BuiltWith key. \"brand\": the company's logos, colors and fonts from the workspace's own Context.dev key. \"crunchbase\": the company's funding, investors, headcount, headquarters and categories from the workspace's own Crunchbase key. Connect each key in Settings > Integrations.","type":["array","null"],"items":{"type":"string","pattern":"^(technologies|brand|crunchbase)$"},"default":null}}}},{"type":"data.find_email@1","key":"data.find_email","version":1,"kind":"data","title":"Find email","description":"Finds the work email of the run's person or lead with a waterfall: the record's own email and Kenso's database first, then Kenso's cached mail check of the company domain (a domain that cannot receive mail ends the search with not_found), then a pattern guess (first.last@domain and similar), then the paid finders LeadMagic and Findymail, the workspace's own keys first (Prospeo only when providers lists it). Hunter, Lusha, People Data Labs, Dropcontact, RocketReach, Icypeas, Enrow, Apollo, Datagma, Snov.io, ZoomInfo, Cognism and FullEnrich also join that group, but only when the workspace saved a working key for them. Every candidate is verified and the waterfall stops at the first verified email. Use it before a send step on records without an email; it needs the person's first and last name and the company domain (or a LinkedIn URL Kenso Search can resolve). Returns email, status (verified, catch_all, not_found, or unverified when acceptUnverified is on and no verifier is available), source and the stages tried. A lead that already has a verified email when the step runs gets status already_has_email with that email, and no stage runs. Costs one find-email credit only when it returns an email it found; nothing when it finds none, nothing for the lead's own email, nothing when the workspace's own provider key found it, and nothing for an email from Kenso's database whose verdict is recent (verifiedAt set). On a place run, set personId (from data.find_people or ai.website_people) to find a found person's email. To find someone who is not the run's record, such as a person an earlier step found on a schedule or webhook run, inside logic.for_each, give the person as firstName, lastName, companyDomain, companyName and linkedInUrl: the step then reads only those fields (first and last name with companyDomain or companyName, or linkedInUrl; a blank one counts as not given), loads no record and saves the email nowhere, so pass {{<id>.email}} on, for example to campaign.add_lead@1's email. The same waterfall, rules and cost apply. Those fields with personId are invalid_input. A place run with neither fails.","cost":{"free":false,"action":"WorkflowFindEmail","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"providers":{"description":"Waterfall stages to run, in this order: ken_db, domain_intel, pattern, leadmagic, findymail, prospeo (only when listed), and hunter, lusha, peopledatalabs, dropcontact, rocketreach, icypeas, enrow, apollo, datagma, snovio, zoominfo, moltsets, blitz, cognism, fullenrich, which run only on the workspace's own key for that provider (blitz needs the person's LinkedIn URL). Omit for the default order (Kenso DB, the domain's cached mail check, pattern guess, then the paid finders, the workspace's own keys first). To follow a campaign's finder settings, list only the finders the campaign allows.","type":["array","null"],"items":{"type":"string"}},"acceptCatchAll":{"description":"Also accept a catch-all address (the domain accepts every mailbox, so it cannot be verified). Default false: only a verified email is returned.","type":"boolean","default":false},"acceptUnverified":{"description":"When no email verifier is available (MailTester is not configured, or its bypass is on), return the first email Kenso's DB or a paid finder found, with status unverified, instead of failing. Default false. Has no effect while the verifier works.","type":"boolean","default":false},"uploadedEmailId":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. The lead's uploaded email row (live, provider default, validity unknown; the lead's first other such row once this one no longer is): while findymail is a stage and the company has a domain, Findymail checks that address before any other stage, as the old enrichment job did. A verified or catch-all verdict is the result (no paid find); no verdict lets the other stages run without a Findymail find.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"personId":{"description":"Find the email of this workspace person instead of the run's own record: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each. When it finds an email for a person who has none, the step saves it on the person (a place run cannot save to the person through save). Not together with firstName, lastName, companyDomain, companyName or linkedInUrl (invalid_input).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"firstName":{"description":"Find the email of the person these fields describe instead of the run's own record, on any run (a schedule or webhook run about no record included), usually a reference such as {{item.firstName}} inside logic.for_each. Setting any of firstName, lastName, companyDomain, companyName or linkedInUrl, even to a reference that comes out empty, makes the step read only these fields: it loads no record and saves the email nowhere. It needs firstName and lastName with companyDomain (or companyName), or linkedInUrl; otherwise it fails with invalid_input. A blank value counts as not given.","type":["string","null"],"default":null},"lastName":{"description":"The last name of the person to find (see firstName).","type":["string","null"],"default":null},"companyDomain":{"description":"The domain of the person's company, such as acme.com (a URL is reduced to its domain), for the person in firstName and lastName.","type":["string","null"],"default":null},"companyName":{"description":"The name of the person's company. Without companyDomain, only Kenso's database and the finders that search by company name (prospeo and most workspace-key finders) use it, so give companyDomain when you have it.","type":["string","null"],"default":null},"linkedInUrl":{"description":"The person's LinkedIn profile URL (linkedin.com/in/...). Enough on its own: Kenso Search fills in the name and company domain it knows for the profile, and the finders that search by LinkedIn use it.","type":["string","null"],"default":null},"ownKeysFirst":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. While Kenso's email finder runs the pattern stage, the listed finders the workspace has its own key for run before it, as in the default order.","type":"boolean","default":false},"includeCollisionKey":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. Puts collisionOtherLinkedInKey in the output, for data.save_email.","type":"boolean","default":false},"includeRejected":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. Puts rejected in the output, for data.save_email.","type":"boolean","default":false}}}},{"type":"data.find_events@1","key":"data.find_events","version":1,"kind":"data","title":"Find relevant events","description":"Finds upcoming conferences, trade shows, meetups and webinars the workspace's buyers attend, in person, hybrid or virtual, and adds the best as Suggested events on Accounts > Events for a member to add or dismiss. It reads the workspace's ICP and Knowledge and its live target accounts, searches the free public listings of Luma, dev.events, allevents and Meetup (and Eventbrite, 10times and Conference Index, through Firecrawl, where Kenso switched them on for the workspace), skips every event the workspace already has as an event or a suggestion (dismissed ones included), rates the rest for relevance, and names the target accounts an event's page lists as speakers, sponsors or exhibitors. It writes suggestions only: never an event, a touch or an import. Use it after trigger.schedule@1, weekly. Returns candidates, scored, suggested, skippedKnown, per-source reads and errors, the model tokens used, and firecrawlPages and firecrawlCredits. A source that fails is reported and the step still succeeds. Free: no credits are charged (web pages have a per-run cap; read only while the workspace may spend credits). Needs the accounts and event outbound features. Eventbrite and 10times block automated reads, so they are searched only where Kenso switched Firecrawl on for the workspace. LinkedIn Events are not searched: LinkedIn has no events search Kenso can call. To search Eventbrite or LinkedIn Events on the workspace's own Apify account, use data.apify_actor@1 then data.suggest_events@1 (the Apify event templates).","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"monthsAhead":{"description":"How far ahead to look: events starting after today and at most this many months out, 1 to 12. Default 6.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":6},"maxSuggestions":{"description":"The most events to suggest in one run, 1 to 50. Default 25.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":25},"minRelevance":{"description":"The lowest relevance (0 to 100) an event needs to be suggested. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50}}}},{"type":"data.find_instagram@1","key":"data.find_instagram","version":1,"kind":"data","title":"Find Instagram handle","description":"Finds the Instagram handle of the person behind the run's lead or person. Ken reads the links Kenso already holds (the person's LinkedIn text and their research), then searches the web for their Instagram profile, then asks an Instagram profile index, and stops at the first strong match. It never opens Instagram. The handle is not accepted for you: up to 3 candidates wait on the person page for someone to accept or reject. Returns status: needs_review, not_found, incomplete (a lookup could not finish, so nothing was saved and the next run tries again), already_accepted, recently_checked (a not_found or rejected person checked in the last 60 days), person_not_found or no_person (the lead is linked to no person), plus personId, handle (only when one is accepted) and incomplete. A person who already has candidates waiting is not searched again. Free during the beta. Needs the instagram feature. In a test run the step is simulated and finds nothing. On a place run, set personId to find a handle for a person found at the place.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"instagram"}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Find the handle for this workspace person instead of the run's own lead or person: a personId from data.find_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.find_people@1","key":"data.find_people","version":1,"kind":"data","title":"Find people","description":"Finds people who work at the run's account (or the company of the run's person or lead) in Kenso Search, by job title and seniority. Use it to map the buying committee of an account before outreach, then loop over the people to find their emails. Returns up to limit people with name, title and LinkedIn URL. Costs one find-people credit per person returned; nothing when it finds nobody. On an account run, addToAccount: true also adds each person to the workspace's people on the account (matched or created, source workflow) and returns their personId, so data.find_email in a logic.for_each and account.add_to_campaign after it work on them. On a place run (a Google Maps place) it looks up the company that owns the place's website domain and returns its owners, partners, executives and managers first; each person is added to (or matched in) the workspace's people with the place's domain as their company, and the result carries their personId. A place with no website, or whose company Kenso Search does not hold (Kenso Search covers fewer countries than Google Maps), finds nobody at no cost. A place whose website is a location page of a larger site (a chain's branch, such as /offices/tx/austin) is skipped at no cost with skipped chain_branch: its domain is the chain's headquarters. When the workspace saved its own Blitz key, Blitz is asked first (by the company's LinkedIn URL, else its domain; titles run Blitz's title cascade, seniorities its employee finder): its people cost no Kenso credits, since the workspace pays Blitz, and Kenso Search answers as above when Blitz finds nobody or is unavailable. Blitz cannot filter by titles and seniorities together, so a step that sets both always uses Kenso Search.","cost":{"free":false,"action":"WorkflowFindPeople","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"titles":{"description":"Job titles to look for, e.g. [\"Head of Sales\", \"VP Sales\"]. Required on an account, person or lead run (and at least one title or seniority must be set); on a place run titles and seniorities may both be left out (owners and managers first).","type":["array","null"],"items":{"type":"string"}},"seniorities":{"description":"Seniority levels to keep, e.g. [\"director\", \"vp\", \"c_level\"].","type":["array","null"],"items":{"type":"string"}},"limit":{"description":"How many people to return, 1 to 25. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"addToAccount":{"description":"Account runs only: also add each person found to the workspace's people on the run's account (matched by LinkedIn URL or Kenso person id, else created, source workflow) and return their personId, so data.find_email inside logic.for_each and account.add_to_campaign after it work on them. Default false. Ignored on person, lead and place runs (a place run always writes its people) and on a shadow run.","type":"boolean","default":false}}}},{"type":"data.find_phone@1","key":"data.find_phone","version":1,"kind":"data","title":"Find phone","description":"Queues a phone number find for the person behind the run's lead or person, the same find as Find phone on a person: Ken looks the number up in the background and saves the mobile it finds on the person and their campaign leads. Use it after trigger.reply@1 to get a number for leads who reply interested, before a call. Returns status: queued, already_has_phone (nothing queued), already_queued (a find for the person is already running), no_person (the lead is linked to no person) or skipped (the person was deleted or merged), and personId. Needs the calls or whatsapp feature, except in the workspace's copies of the LinkedIn connections enrich templates, whose enrich job runs find phones whatever the channels. A find is charged only when it finds a number, at the phone found price, like a find from the person page; the step adds no charge of its own, so that spend does not count toward the workflow's credit limits. In a test run the step is simulated and queues nothing. On a place run, set personId to queue a find for a person found at the place.","cost":{"free":false,"action":"PhoneFound","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"any_flag","key":"calls","anyOf":["calls","whatsapp"]}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Queue the find for this workspace person instead of the run's own lead or person: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.podcasts@1","key":"data.podcasts","version":1,"kind":"data","title":"Podcast search","description":"Finds podcast appearances and what was said on them, in Particle's podcast index through Firecrawl. On a person or lead it resolves the person by LinkedIn URL, else by name checked against their company (a namesake at another company is not_found, never attached), lists the episodes they were a guest on and, with includeTranscript, their own lines from their best recent episode. On an account it reads the podcast mentions of the company (only when the index knows the company as an entity, never by name) and up to 3 of its most senior people who were guests, with one transcript. subject person on an account run fails the step (permanently, before any lookup, with no charge): an account workflow uses auto or company. Returns status (found, no_appearances, not_found, not_identified or failed), found, guestName, the latest episode (latestShow, latestEpisodeTitle, latestEpisodeDate, latestEpisodeUrl), appearances, quotes, guests and aiContext, a block written for Ken's writer. On a lead record a found person result (not subject company) is also saved on the lead as its ken_podcast custom value, which Ken's writer reads for emails, LinkedIn notes and voice notes (not in a test run). Priced by what the lookup used on Kenso's key (free on the workspace's own Firecrawl key): about 3.47 credits for a person found with a transcript, 0.5 for a person not found and at most 10.4 for a company. A result for the same person or company and the same options from the last 30 days is reused at no charge. Needs the podcast_enrichment feature.","cost":{"free":false,"action":"PodcastSearch","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"podcast_enrichment"}],"inputSchema":{"type":"object","properties":{"subject":{"description":"auto (default): the person on a person or lead run, the company on an account run. person or company picks one; company on a person or lead run looks up their company. person on an account run fails the step before any lookup, with no charge: use auto or company there.","type":"string","default":"auto","enum":["auto","person","company"]},"includeTranscript":{"description":"Also read what they said in their best recent episode (their own transcript lines). Default true.","type":"boolean","default":true},"maxAppearances":{"description":"Appearances kept per person, 1 to 5. Default 3.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3},"publishedWithinMonths":{"description":"Only episodes published this many months back or later, 1 to 60. Default 24.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":24}}}},{"type":"data.save_email@1","key":"data.save_email","version":1,"kind":"data","title":"Save email","description":"Kenso's own email pipeline only (system workflows): records the run's lead's email as the old email jobs did. From a data.find_email result it creates or updates the emails row (an address the lead already holds updates that row, never a second one) and records the outreach status of each stage it tried, and writes Findymail's check of the lead's uploaded address (uploadedEmailId, uploadedStatus) onto that row; from a data.verify_email result (emailId set) it updates that row's validity and verification attempts. An address another row of the same lead already holds as invalid stays invalid. A find on the workspace's own provider key is settled so it is never charged. The old jobs' rules apply first: a lead or address on the workspace's do-not-contact list marks the lead do-not-contact and writes no row, and a personal address on a campaign that does not allow them is saved invalid. Returns the row, its stored validity, the outreach statuses it added, whether it settled the find and whether the lead is do-not-contact.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"email":{"description":"The address to record, or null when nothing was found.","type":["string","null"]},"status":{"description":"verified, catch_all, unverified, valid, invalid, unknown, not_found or already_has_email (the find or verify step's status). An unverified find is saved as the old finder jobs save an unchecked hit; already_has_email writes nothing.","type":"string"},"source":{"description":"record, ken_db, pattern, findymail, leadmagic, prospeo, mailtester, bulk_email_checker or catch_all_waterfall.","type":["string","null"]},"tried":{"description":"Stages the find step tried, in order. Each maps to the outreach status the old job wrote.","type":["array","null"],"items":{"type":"string"},"default":null},"emailId":{"description":"Existing emails row that was verified (verify path). Null on the find path.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"customerKey":{"description":"Whether the workspace's own provider key ran the paid call: a new find is then settled, never charged.","type":"boolean","default":false},"checkedAt":{"description":"Verify path: the verify step's checkedAt. A check the row already counted is not counted again when the save is retried.","type":["string","null"],"format":"date-time","default":null},"catchAllWaterfall":{"description":"Verify path: the verify step's catchAllWaterfall (undecided or no_answer). The waterfall's attempt is counted as the catch-all job counted it.","type":["string","null"],"default":null},"uploadedEmailId":{"description":"Find path: the find step's uploadedEmailId, the lead's uploaded row Findymail checked.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"uploadedStatus":{"description":"Find path: the find step's uploadedStatus. verified, catch_all or unknown update that row in place as Findymail's (the old enrichment job's write) and record Findymail's outreach status; do_not_contact marks the lead.","type":["string","null"],"default":null},"verifiedBy":{"description":"The find or verify step's verifiedBy: the verifier whose check decided the status. The row is stamped as verified by it, now or at checkedAt (a mailtester verify is always MailTester's, a bulk_email_checker verify Bulk Email Checker's). Null stamps no verifier.","enum":["default","icypeas","lead_magic","prospeo","enrow","kitt","mail_tester","findymail","database_lookup","bulk_email_checker","moltsets","ken_finder","ken_verifier","loopster","blitz",null],"default":null},"sourceProvider":{"description":"Find path: the find step's sourceProvider. With verifiedAt, a ken_db email is saved with that provider; kenfinder on a pattern email saves it as Kenso's finder's.","type":["string","null"],"default":null},"verifiedAt":{"description":"Find path: the find step's verifiedAt. A verified ken_db email with it is saved as checked then, and is free: the lead's email credit is settled at 0.","type":["string","null"],"format":"date-time","default":null},"catchAllScore":{"description":"Find path: the find step's catchAllScore. Kenso's catch-all guess is saved with it as the address's catch-all score.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"collisionOtherLinkedInKey":{"description":"Find path: the find step's collisionOtherLinkedInKey, saved on Kenso's find.","type":["string","null"],"default":null},"rejected":{"description":"Find path: the find step's rejected. Each address MailTester called invalid is saved as an Invalid row of the stage that found it, verified by MailTester, unless the lead already holds it or it is on the workspace's do-not-contact list.","type":["array","null"],"items":{"type":"object","properties":{"email":{"description":"The address MailTester called invalid.","type":"string"},"source":{"description":"The stage that found it: ken_db or a paid finder (findymail, leadmagic, prospeo, ...).","type":"string"},"customerKey":{"description":"Whether the workspace's own provider key found it.","type":"boolean","default":false}},"required":["email","source"]},"default":null}},"required":["status"]}},{"type":"data.scrape@1","key":"data.scrape","version":1,"kind":"data","title":"Scrape page","description":"Scrapes a web page with Firecrawl and returns its content as markdown (or html), cut to 16 KB per page. With site true it also scrapes other pages of the same site, up to maxPages. Use it to read a company's website, pricing or careers page before an AI step researches, qualifies or writes about the account. Returns pages with url, title and content. Costs one scrape credit per page returned that Kenso read live; pages from Kenso's archive or the workspace's own Firecrawl key are free, and so is a page with no content.","cost":{"free":false,"action":"WorkflowScrape","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL of the page, e.g. https://{{account.primaryDomain}}.","type":"string"},"site":{"description":"Also scrape other pages of the same site (found from its sitemap and links), up to maxPages.","type":"boolean","default":false},"maxPages":{"description":"With site true, how many pages to return in total, 1 to 20. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"format":{"description":"markdown (default) or html.","type":"string","default":"markdown"}},"required":["url"]}},{"type":"data.social_lookup@1","key":"data.social_lookup","version":1,"kind":"data","title":"Social profile lookup","description":"Reads a social profile and its recent posts. By default it reads the run's person or lead LinkedIn URL (an account's LinkedIn page on an account run); urls names other links instead (LinkedIn, Facebook, Instagram, X, TikTok, YouTube or Crunchbase, at most 10). With posts on (the default) it also reads the LinkedIn profile's postsLimit most recent posts (1 to 10, 5 by default) from the last postsSinceDays days (90 by default). Returns status (found, no_records or running), records, profileUrl, summary (name, headline, location, followers and the posts, at most 1,500 characters) and keySource. On a lead run the summary is also saved on the lead as its ken_social custom value, which Ken's writer, segmentation and qualification always read (not in a test run; a lead with nothing found keeps its old value). A lead with no link, or only links social data cannot read, is skipped. Costs 0.15 credits per record read on Kenso's key (one profile and 5 posts: 0.9 credits); free on the workspace's own social data key, and free for records read in the last 7 days (profiles) or 24 hours (posts). Needs the social_data feature.","cost":{"free":false,"action":"SocialDataRecord","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"social_data"}],"inputSchema":{"type":"object","properties":{"urls":{"description":"Social links to read, as text or template expressions such as {{lead.linkedinUrl}}. Empty (the default): the run's person or lead LinkedIn URL, or on an account run the company's LinkedIn page. At most 10.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10},"posts":{"description":"Also read the LinkedIn profile's recent posts. Default true.","type":"boolean","default":true},"postsLimit":{"description":"How many recent posts to read, 1 to 10. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5,"minimum":1,"maximum":10},"postsSinceDays":{"description":"Only posts from this many days back or later, 1 to 365. Default 90.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":90,"minimum":1,"maximum":365}}}},{"type":"data.social_search@1","key":"data.social_search","version":1,"kind":"data","title":"Social search","description":"Runs one social data search and returns its records: a LinkedIn profile's or company's posts, LinkedIn jobs by keyword and location or by company, LinkedIn people by name, a Facebook page's or group's posts, Facebook ads by keyword, an Instagram or X profile by username or its posts, TikTok posts or profiles by keyword, YouTube channels or videos by keyword, hashtag or channel, or Crunchbase companies by keyword. platform and type pick the search; url, keyword, location, country, company, firstName and lastName are what it reads; sinceDays keeps only recent records; limit caps them (1 to 100, 10 by default). Returns status (found, no_records or running), count, records (url, platform, kind, name, text, postedAt, metrics) and keySource. Writes nothing on the run's record. Costs 0.15 credits per record on Kenso's key; free on the workspace's own social data key, and free for the same search within 24 hours. Needs the social_data feature.","cost":{"free":false,"action":"SocialDataRecord","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"social_data"}],"inputSchema":{"type":"object","properties":{"platform":{"description":"The network to search: linkedin, facebook, instagram, x, tiktok, youtube or crunchbase.","type":"string","enum":["linkedin","facebook","instagram","x","tiktok","youtube","crunchbase"]},"type":{"description":"The search. linkedin: posts_by_profile, posts_by_company (url), jobs_by_keyword (keyword, location), jobs_by_company (company), people_by_name (firstName, lastName). facebook: posts_by_page, posts_by_group (url), ads_by_keyword (keyword). instagram and x: profile_by_username (keyword, the username), posts_by_profile (url). tiktok: posts_by_keyword, profiles_by_search (keyword), posts_by_profile (url). youtube: channels_by_keyword, videos_by_keyword, videos_by_hashtag (keyword), videos_by_channel (url). crunchbase: companies_by_keyword (keyword).","type":"string","enum":["posts_by_profile","posts_by_company","jobs_by_keyword","jobs_by_company","people_by_name","posts_by_page","posts_by_group","ads_by_keyword","profile_by_username","posts_by_keyword","profiles_by_search","channels_by_keyword","videos_by_keyword","videos_by_hashtag","videos_by_channel","companies_by_keyword"]},"url":{"description":"The profile, company, page, group or channel link a by-link search reads.","type":["string","null"],"default":null},"keyword":{"description":"The keyword, hashtag or username a keyword search reads.","type":["string","null"],"default":null},"location":{"description":"Job searches: a city, a country or Worldwide.","type":["string","null"],"default":null},"country":{"description":"A two-letter country code, such as US, for the searches that take one.","type":["string","null"],"default":null},"company":{"description":"jobs_by_company: the company's name.","type":["string","null"],"default":null},"firstName":{"description":"people_by_name: the person's first name.","type":["string","null"],"default":null},"lastName":{"description":"people_by_name: the person's last name.","type":["string","null"],"default":null},"sinceDays":{"description":"Only records from this many days back or later, 1 to 365, for the searches that read a date. Empty: any date.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":365},"limit":{"description":"The most records to return, 1 to 100. Default 10.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":10,"minimum":1,"maximum":100}},"required":["platform","type"]}},{"type":"data.suggest_events@1","key":"data.suggest_events","version":1,"kind":"data","title":"Suggest events from found items","description":"Turns event items another step found, usually data.apify_actor@1's items from an Eventbrite or LinkedIn Events actor, into Suggested events on Accounts > Events for a member to add or dismiss. It reads each item's name, page, dates, time zone, format, city, venue, organizer and summary where the item has them, and skips items without a name, a page or a date, and cancelled or past events. Then, as data.find_events@1 does, it skips every event the workspace already has as an event or a suggestion (dismissed ones included), rates the rest against the workspace's ICP and Knowledge, names the target accounts an event's own text mentions, and writes the best with a one-line reason and the event's page. It writes suggestions only: never an event, a touch or an import. Returns the item, event and skip counts, candidates, scored, suggested, and the model tokens used. Free: no credits are charged. Needs the accounts and event outbound features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"items":{"description":"The event items, usually an Apify actor step's items: {{find.items}}. At most 200 are read.","type":["array","null"],"default":null},"source":{"description":"Where the items come from, shown on each suggestion: eventbrite, linkedin, luma, dev_events, allevents or meetup.","type":"string","default":"eventbrite","enum":["eventbrite","linkedin","luma","dev_events","allevents","meetup"]},"monthsAhead":{"description":"How far ahead to look: events starting after today and at most this many months out, 1 to 12. Default 6.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":6},"maxSuggestions":{"description":"The most events to suggest in one run, 1 to 50. Default 25.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":25},"minRelevance":{"description":"The lowest relevance (0 to 100) an event needs to be suggested. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50}}}},{"type":"data.verify_email@1","key":"data.verify_email","version":1,"kind":"data","title":"Verify email","description":"Checks whether an email address can receive mail, with MailTester, or with Bulk Email Checker when provider is bulk_email_checker (MailTester checks it instead in the same attempt when Bulk Email Checker is off, paused, out of credits, over its hourly quota or unreachable, or when it fails to answer; when all its slots are busy or it answers 429, the step retries after a minute), or with the workspace's own ZeroBounce, NeverBounce, Hunter or Icypeas key when provider is zerobounce, neverbounce, hunter or icypeas (MailTester checks it instead when the workspace has no working key or the vendor does not answer; a key that is rate limited or cooling down, or an Icypeas check still running, retries after a minute). Use it on addresses that came from a record, a webhook or another tool before sending to them (data.find_email already verifies what it finds). Returns the email and a status: valid, invalid, catch_all (the domain accepts every mailbox) or unknown. With resolveCatchAll, a catch_all address also goes through the catch-all waterfall (LeadMagic, then Findymail), which can turn it into valid or invalid. Each workspace has a daily verification cap; over it, the step retries after midnight UTC (a check on the workspace's own key does not count against it). Costs one verify credit when the status is valid, invalid or catch_all; an unknown result, and any result from the workspace's own key (customerKey true), is free.","cost":{"free":false,"action":"WorkflowVerifyEmail","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"email":{"description":"The address to verify, usually {{find.email}} or a record field such as {{person.email}}.","type":"string"},"attempts":{"description":"How many times this address was already checked. At 6 the step is skipped (verification_attempts_exhausted). Omit when unknown.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"lastAttemptAt":{"description":"When this address was last checked (UTC). Within 30 minutes of it the step retries once the 30 minutes have passed. Omit when unknown.","type":["string","null"],"format":"date-time","default":null},"resolveCatchAll":{"description":"When MailTester says catch_all, also run the catch-all waterfall (LeadMagic, then Findymail) and return valid or invalid when it decides. Not on the last attempt (attempts 5), as the old catch-all job. Default false.","type":"boolean","default":false},"skip":{"description":"Skip the check (the step is skipped with verification_skipped), for example for a campaign without MailTester verification. Default false.","type":"boolean","default":false},"provider":{"description":"Who checks the address: mailtester (default), bulk_email_checker (Kenso's Bulk Email Checker account), or zerobounce, neverbounce, hunter or icypeas (the workspace's own ZeroBounce, NeverBounce, Hunter or Icypeas key, connected in Settings > Integrations; free in Kenso credits). MailTester checks the address in the same attempt, and the output's provider says mailtester, when Bulk Email Checker is off, paused, out of credits, over its hourly quota, unreachable, or fails to answer (a timeout, a 5xx or a vendor error), and when the workspace has no working ZeroBounce, NeverBounce, Hunter or Icypeas key (none, refused or out of credits) or that vendor does not answer. When all Bulk Email Checker's slots are busy or it answers 429, or the workspace's key is rate limited or cooling down after a rate limit or an out-of-credits answer, or Icypeas is still checking the address, the step retries after a minute and MailTester is not used.","type":"string","default":"mailtester","enum":["mailtester","bulk_email_checker","zerobounce","neverbounce","hunter","icypeas"]},"catchAllVerifiers":{"description":"Kenso's system workflows only: the catch-all verifiers the lead's campaign chose, leadmagic and/or findymail. resolveCatchAll then runs only those, in the waterfall's order (LeadMagic, then Findymail), and none when the list is empty. Omit to run the whole waterfall.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["email"]}},{"type":"find.facebook_profile@1","key":"find.facebook_profile","version":1,"kind":"data","title":"Find Facebook profile","description":"Finds the Facebook profile of the run's person (\"record\", a person or lead run) or of a person id. Ken checks known profiles first, then at most two web searches, and verifies each candidate through the account's Sends from Facebook account, else, when none is set, its owner's (none usable fails with connect_facebook). It runs at most once per person per 30 days; a later run returns what the last one found. A strong match is confirmed at once. A weak match waits for the \"Is this them?\" answer in Today: with onWeakMatch wait (default) the step waits up to 14 days for it, with continue it goes on at once as not found. When discovery cannot run (Facebook outreach is off for this workspace, the account is not connected, or a limit stops it) the step fails as temporary, facebook_discovery_skipped, and tries again instead of answering none. Returns found, confidence (strong or weak for a confirmed profile, weak for an unconfirmed weak match, none) and profileUrl (the confirmed profile, else null). Branch on {{find.found}} before send.facebook@1. Costs the web searches it runs, at most two per person.","cost":{"free":false,"action":"WebScrape","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"facebook_outreach"}],"inputSchema":{"type":"object","properties":{"person":{"description":"Whose profile to find: \"record\" (default) for the run's person, or a person id. An account run needs a person id.","type":"string","default":"record"},"onWeakMatch":{"description":"\"wait\" (default): with only a weak match, wait up to 14 days for the \"Is this them?\" answer in Today. \"continue\": go on at once as not found.","type":"string","default":"wait","enum":["wait","continue"]}}}},{"type":"flow.subworkflow@1","key":"flow.subworkflow","version":1,"kind":"logic","title":"Run another workflow","description":"Starts a run of another live workflow of the same workspace. The child runs for the same record unless `record` names another one. `workflowId` is that workflow, `inputs` optional values handed to the child run, and with `wait` (default true) this run waits until the child finishes; with `wait: false` it continues at once. When the child declares an `interface`, `inputs` are rendered here (references and {\"$formula\"} values), checked against it before the child starts, read in the child as `{{trigger.<name>}}`, and a waited child returns the interface's `outputs`. `record` ({\"type\": \"person\", \"id\": \"{{item.id}}\"}) runs the child on that record, for example one person per for-each item. Use it to reuse one shared sequence of steps from several workflows. Returns the child's `runId` and `status`, and `outputs` for a child with an interface. Free; the child's own steps are charged to the child run.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"workflowId":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"inputs":{"type":["object","null"],"default":null},"wait":{"type":"boolean","default":true},"record":{"description":"Run the child on this record instead of this run's: {\"type\": \"person\", \"id\": \"{{item.id}}\"}. Left out, the child runs on this run's record.","type":["object","null"],"properties":{"type":{"description":"account, person, lead, place or none.","type":"string"},"id":{"description":"The record's id: a number, or one {{reference}} to one, such as {{item.id}} inside a for-each. Null for type none."}},"required":["type","id"],"default":null}},"required":["workflowId"]}},{"type":"http.request@1","key":"http.request","version":1,"kind":"action","title":"HTTP request","description":"Calls a public HTTP or HTTPS API and returns the status, the body parsed as JSON (or its first 32 KB as text) and the response headers. Use it to look a record up in, or push it to, a tool Kenso has no built-in step for. Reference API keys in headers as {{secrets.NAME}}. Or name a workspace connection in connection: the step sends its credential and takes a path as url. To read from Kenso's own API (a /v1/ path, or https://api.ken.so/v1/...) set no Authorization header: the step calls it as this workspace with the Viewer access of the person who last saved the workflow, read-only (GET, HEAD, or POST to a search), with no key to set up. 2xx succeeds; 429 and 5xx fail as temporary and are retried only for GET and HEAD; other 4xx fail permanently; private and internal addresses are refused. Waits at most 30 seconds and reads at most 1 MB. With pagination (GET, or a POST search that takes its cursor in the body) it follows up to 20 pages and returns their items as one list. Free, within a workspace limit of 5,000 requests a day and 60 a minute to one domain (a tenth of that on the Free plan): a request over a limit is not sent and waits for the limit to reset.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL on port 80, 443 or 8080-8090. Private and internal addresses are refused. The step log shows only its scheme, host and port. To call Kenso's own API, write a /v1/ path (/v1/campaigns/{{trigger.campaignId}}) or https://api.ken.so/v1/... and set no Authorization header: the step then calls it as this workspace, read-only, with no API key. Kenso's server must be written in the step, not filled from run data.","type":"string"},"method":{"description":"GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS. Only GET and HEAD are retried automatically. A call to Kenso's API with no Authorization header takes GET, HEAD, or POST to a search.","type":"string","default":"GET"},"headers":{"description":"Request headers. Reference credentials as {{secrets.NAME}}: headers are the only place this step takes a secret, and publishing it needs the Integrations permission. Secret values are redacted in the step log, and a redirect to another origin keeps only the Accept, Content-Type and User-Agent headers. Leave out Authorization to call Kenso's API with no key: the step sets Authorization and X-Ken-Workspace-Id itself, and Ken-Version 1.1 unless you set it.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"body":{"default":null},"timeoutSeconds":{"description":"Seconds to wait for the response, 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30},"connection":{"description":"Name of a workspace connection (workflow-connections), written in the step. The step then sends the connection's credential itself, so set no secret header for it. url may be a path that starts with /, joined to the connection's base URL; an absolute url must be https on one of the connection's allowed hosts, and a redirect outside them is refused. A header the connection sets wins over the same header here. Publishing a step with a connection needs the Integrations permission.","type":["string","null"],"default":null},"query":{"description":"Query parameters appended to url, URL-encoded. A number or true/false is sent as its text. Takes no {{secrets.NAME}}.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"form":{"description":"Form fields, sent as the body with Content-Type application/x-www-form-urlencoded. Set form or body, never both. Takes no {{secrets.NAME}}.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"neverError":{"description":"true: the step succeeds on any HTTP status and the output's ok says whether it was 2xx, so a later step can branch on status. A blocked address, a timeout, a network failure and a JSON answer over 1 MB (response_too_large) still fail. Default false.","type":"boolean","default":false},"pagination":{"description":"Follow the API's pages and return their items as one list in items. GET, or a POST search that takes its cursor in the JSON body (mode cursor, in body). Each page is one request against the workspace's HTTP limits. Stops at maxPages, 1,000 items, 200 KB of items, an empty page, a page identical to the one before it, or after 120 seconds.","type":["object","null"],"properties":{"mode":{"description":"How the API pages: cursor (each response holds a cursor to send back), offset (a numeric offset and a page size) or next_url (each response holds the next page's URL). Write it in the step: it cannot come from run data.","type":"string"},"itemsPath":{"description":"Dot path to the list in each page, for example data or result.records. Leave it out when the response body itself is the list.","type":["string","null"],"default":null},"cursorPath":{"description":"cursor: dot path to the next cursor in each response, for example pagination.nextCursor. The step stops when it is missing, null or empty.","type":["string","null"],"default":null},"cursorParam":{"description":"cursor: the query parameter that carries the cursor on the next request, for example cursor. With in body: the dot path in the JSON body that takes it, for example after.","type":["string","null"],"default":null},"offsetParam":{"description":"offset: the query parameter that carries the offset, for example offset. The step sets it itself, starting at 0.","type":["string","null"],"default":null},"limitParam":{"description":"offset: the query parameter that carries the page size, for example limit. Leave it out when the API has none.","type":["string","null"],"default":null},"pageSize":{"description":"offset: items per page, 1 to 1000, and no more than the API returns in one page. The offset moves by this much, and a page with fewer items is the last.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"nextUrlPath":{"description":"next_url: dot path to the next page's absolute URL in each response, for example links.next. The step stops when it is missing, null or empty. The URL must be on the step's own server, or with a connection on one of its allowed hosts.","type":["string","null"],"default":null},"maxPages":{"description":"The most pages to request, 1 to 20.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"in":{"description":"cursor: where the next request carries the cursor. query (the default): the query parameter cursorParam. body: the dot path cursorParam in the JSON body, for a POST search such as HubSpot's; the body must be a JSON object and every page goes to the same URL. A POST is never retried automatically, paging or not, so a failed page fails the step. Use body only on an endpoint that reads, never on a POST that creates or changes anything.","type":["string","null"],"default":null}},"required":["mode"],"default":null}},"required":["url"]}},{"type":"human.approve@1","key":"human.approve","version":1,"kind":"human","title":"Wait for approval","description":"Pauses the run until a person approves or rejects it. Opens an approval that a workspace member decides through the workflow approvals routes (list, get, decide), which the Ken MCP and the CLI call too; the optional notify entries tell them by email or in a Slack channel; the email skips a member who turned off workflow approval emails, and the approval stays open for them either way. assignee says who decides: owner, anyone, or a member id. Returns decision (approved or rejected), decidedBy, decidedAt, note and the collected fields. When nobody decides within timeoutHours (72 by default, at most 720), onTimeout decides: reject or approve end the step with that decision and timedOut true, fail fails it. Guard the next steps with when: \"{{approve.decision}} == 'approved'\". A test run does not wait: it returns an approved decision with simulated true. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"title":{"description":"What the person is asked to approve, in one line. References are filled from the run.","type":"string"},"summary":{"description":"Optional detail shown under the title: the facts the person needs to decide.","type":["string","null"],"default":null},"assignee":{"description":"Who decides: owner (the author of the published workflow version, else its creator), anyone (any member who can edit workflows), or a member id written as text (\"42\") or as a reference such as {{owner.memberId}}. A named member decides it whatever their Workflows access, a view-only member too; a member on a Client or Network member seat cannot be named.","type":"string","default":"owner"},"fields":{"description":"Optional values to collect with the decision, at most 10. Each has name, type (text, number or boolean), required and label.","type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"required":{"type":"boolean","default":false},"label":{"type":["string","null"],"default":null}},"required":["name","type"]},"default":null,"maxItems":10},"notify":{"description":"Who is told that an approval is waiting: email (the assignee, or the owner when the assignee is anyone) and slack:#channel. Best effort: a notification that fails never fails the step, and an email past the workspace's 5,000 workflow emails a day is not sent.","type":["array","null"],"items":{"type":"string"},"default":null},"timeoutHours":{"description":"Hours to wait for a decision, 1 to 720. 72 when left out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":72,"minimum":1,"maximum":720},"onTimeout":{"description":"What happens when nobody decides in time: reject or approve (the step succeeds with that decision and timedOut true), or fail (the step fails).","type":"string","default":"reject","enum":["reject","approve","fail"]}},"required":["title"]}},{"type":"integration.call@1","key":"integration.call","version":1,"kind":"action","title":"Call an app","description":"Runs a ready-made request to an app such as HubSpot, Salesforce or Google Sheets, with a connection of this workspace. operation names it as <app>.<key> (workflow-integrations-list names every app, workflow-integrations-get its operations and inputs); connection names the workspace connection that holds the app's credential; inputs fills the operation's inputs. Returns { operation, status, ok, data }, or for an operation that returns a list { operation, status, ok, items, count, truncated }: an operation that pages reads up to maxItems (default 100, at most 1,000) across its pages, any other returns the one page the app answers, a list in it cut to maxItems. An answer over 1 MB is never read as whole: it fails as response_too_large, or ends the pages read with truncated true. It runs through the same guards and limits as http.request: 2xx succeeds, 429 and 5xx fail as temporary, other 4xx fail permanently. Only an operation that reads is retried, or runs for real in a test run; one that writes is retried only after a 429, which the app did not take, and runs in a test only when named in liveSteps. Free, and counts against the workspace's HTTP request limits.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"operation":{"description":"The catalog operation to run, <app>.<key>, for example hubspot.contacts.search, written in the step. workflow-integrations-list names every app; workflow-integrations-get lists an app's operations and their inputs.","type":"string"},"connection":{"description":"Name of a workspace connection (workflow-connections), written in the step: one of the types the app takes, on a host it allows. The step sends its credential. Publishing a step with a connection needs the Integrations permission.","type":"string"},"inputs":{"description":"The operation's inputs by name, as workflow-integrations-get lists them with their types. A value may be a reference or a computed value. 30 at most.","type":["object","null"],"default":null},"maxItems":{"description":"The most items to return, 1 to 1,000. Default 100. An operation that pages (workflow-integrations-get says paginated) reads its pages up to this many; any other returns the one page the app answers, and a list in it is cut to this many.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100,"minimum":1,"maximum":1000},"neverError":{"description":"true: the step succeeds on any HTTP status and the output's ok says whether it was 2xx. A blocked address, a timeout and a network failure still fail. Default false.","type":"boolean","default":false}},"required":["operation","connection"]}},{"type":"knowledge.run_skill@1","key":"knowledge.run_skill","version":1,"kind":"ai","title":"Run a skill","description":"Runs one of the workspace's Knowledge skills for the run's account and puts what the skill writes on Today as a task. Kenso adds this step itself to the workflow it keeps for each turned-on skill; in any other workflow it fails. Skipped when the skill changed, was turned off or deleted since the run started, or the run has no account. Costs one balanced AI prompt for each task it writes.","cost":{"free":false,"action":"WorkflowAiPromptBalanced","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"knowledge"}],"inputSchema":{"type":"object","properties":{"fileId":{"description":"The skill's Knowledge file id. Kenso sets it.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"specHash":{"description":"The textHash of the trigger this workflow was built from. A run whose skill changed since is skipped.","type":"string"},"firstMeetingOnly":{"description":"meeting_booked skills: run only for the lead's first booked meeting.","type":"boolean","default":false},"negotiationId":{"default":null}},"required":["fileId","specHash"]}},{"type":"lead.play_target@1","key":"lead.play_target","version":1,"kind":"action","title":"Find the lead's account","description":"Gets a lead ready for a Play's email: finds the account by company domain, else work-email domain, else adds it at stage new (campaigns keep sending; no research queued), adds the person as an engaged member and links the lead. Never moves a stage or stops a sequence. Returns ok, accountId, personId, created and inReplyTo (the msg_ id of messageId, else of the lead's latest campaign email). ok is false with reason no_domain, no_person or removed; follow it with a logic.filter on {{<node>.ok}} == true. Runs on a lead. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The email to answer: {{trigger.messageId}} on a reply run, {{trigger.lastMessageId}} on a hot page run. A native Message-ID or a msg_ id. Leave out to answer the lead's latest campaign email.","type":["string","null"],"default":null}}}},{"type":"lead.revival_check@1","key":"lead.revival_check","version":1,"kind":"action","title":"Check the lead can be revived","description":"Decides whether Ken may follow up now on a lead's reply (objection, out_of_office or interested) that went quiet. Use it after a logic.wait until {{trigger.followUpAt}} on a reply-triggered run, then branch on revivable. It reads the reply (messageId, else the lead's latest campaign reply) and checks, in order: the class, that the follow-up date has come, no bounce, unsubscribe or complaint since, not suppressed, no other human reply since, nobody wrote on the thread within quietDays, no send still planned by a sequence, no meeting booked in the last 365 days or later (only after meetingsAfter when set), no open opportunity on the account (skipIfOpenOpportunity), no revival sent to the same email within cooldownDays, and not in the holdout. Every check covers every campaign row with the same email. A negative reply is refused unless allowNegative is true, and then revives only when it is at least 180 days old, the lead's account has a funding or hiring signal since it, and the contact's country is known and outside the EU, the EEA, the UK and Switzerland. After a logic.wait_for_event on signal.fired, pass wakeSignal {{<node>.event.signal}}: a funding or hiring signal makes the follow-up due now unless the person asked for a date or is out of office. Returns revivable and, when false, the reason (not_found, class_not_revivable, negative_not_allowed, negative_too_recent, negative_no_signal, eu_uk_contact, country_unknown, not_due, non_engageable, suppressed, replied_again, thread_active, in_sequence, meeting_booked, open_opportunity, cooldown or holdout), plus the reply's messageId, threadId, classification, campaignId, receivedAt, followUpAt and followUpSource. A run about a lead, or about an account with contactId the lead at that account (opportunity.revival_target finds it; a lead of another account fails the step). Needs the lead_revival feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The reply to revive: {{trigger.messageId}} on a reply-triggered run. Leave out to use the lead's latest classified campaign reply (any campaign row with the same email).","type":["string","null"],"default":null},"cooldownDays":{"description":"No revival when one was sent to this person (same email, any campaign) within this many days. 30 to 730. Default 365.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":365},"skipIfOpenOpportunity":{"description":"Skip a lead whose account has an open opportunity. Default true.","type":"boolean","default":true},"holdoutPercent":{"description":"Share of the workspace's revivable leads held out to measure lift, 0 to 50. Default 10. The same person is always in or out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":10},"applyHoldout":{"description":"Apply the holdout. Default true; a person deciding by hand sets false.","type":"boolean","default":true},"quietDays":{"description":"Skip when anyone wrote on the reply's thread within this many days. 0 to 90; 0 turns the check off. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"excludeMessageIds":{"description":"Message ids the thread check ignores, such as this workflow's own revival. Default none.","type":["array","null"],"items":{"type":"string"},"default":null},"contactId":{"description":"On a run about an account, the lead to check: {{<target>.contactId}} from opportunity.revival_target. Honored only when that lead's account is the run's account; any other lead fails the step. Leave out on a run about a lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"meetingsAfter":{"description":"Only meetings that start at or after this time stop the revival, such as {{trigger.changedAt}} on a lost deal, so the deal's own meetings do not. Default: every meeting of the last 365 days.","type":["string","null"],"format":"date-time","default":null},"allowNegative":{"description":"Revive a negative (not interested) reply too. Default false: negative_not_allowed. When true, only a reply at least 180 days old (negative_too_recent), with a funding or hiring signal on the lead's account since it (negative_no_signal), from a contact whose country is known (country_unknown) and outside the EU, the EEA, the UK and Switzerland (eu_uk_contact). not_interested stays negative_not_allowed.","type":"boolean","default":false},"wakeSignal":{"description":"The signal that woke the run early: {{<wait_for_event>.event.signal}}. funding or hiring makes a follow-up date due now, unless the person asked for it or is out of office; any other value, or none, changes nothing. Pass only that event reference: a literal funding or hiring makes every class-rule date due at once.","type":["string","null"],"default":null},"dueAfterDays":{"description":"Days after the reply it is due, in place of the class rule's date. 1 to 365. An asked or out-of-office date still wins.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"list.map@1","key":"list.map","version":1,"kind":"action","title":"Reshape a list","description":"Goes through a list and turns each item into a new one. fields builds an object per item (name to formula); value makes each item one formula's result; where drops the items it is not true for first. The formulas read {{item}}, {{index}} (from 0) and {{context}} only: put anything else the run knows into context, which is rendered once. Up to 5,000 items, 2 seconds of work and 256 KB of output. Returns items, count, dropped, errors and truncated.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"items":{"description":"The list to go through: a reference such as {{src.rows}}, or a {\"$formula\"} that gives a list. Empty (a skipped step) is an empty list."},"fields":{"description":"What each item becomes: an object of these fields, name to formula, at most 30. Kept as written, never rendered. Set this or value.","type":["object","null"],"default":null},"value":{"description":"One formula each item becomes, for example lower({{item.email}}). Kept as written, never rendered. Set this or fields.","type":["string","null"],"default":null},"where":{"description":"A formula: items where it is not true (null, false, 0, '' and [] are not) are dropped before fields or value.","type":["string","null"],"default":null},"keep":{"description":"With fields: start from the item's own keys, then add or replace the fields. Default false.","type":"boolean","default":false},"context":{"description":"Values from the run the formulas need, rendered once: {\"min\": \"{{score.value}}\"} is read as {{context.min}}.","type":["object","null"],"default":null},"maxItems":{"description":"The most items to go through, 1 to 5,000. The rest is cut and truncated is true. Default 5,000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5000,"minimum":1,"maximum":5000},"onItemError":{"description":"When an item's formula fails: null (the field is null), skip (drop the item) or fail (stop the step). Default null.","type":"string","default":"null","enum":["null","skip","fail"]}},"required":["items"]}},{"type":"list.merge@1","key":"list.merge","version":1,"kind":"action","title":"Merge lists","description":"Combines values from earlier steps. append puts 2 to 10 lists one after another (dedupeBy drops repeats); combine matches the items of 2 to 10 lists by key and joins each match into one item (join inner, left or outer; onConflict first or last); first_present returns the first of up to 10 inputs that is not empty, as a fallback. An input of a skipped step is empty. Returns items, count and unmatched, or value, index and found. At most 5,000 items.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"mode":{"description":"append puts the lists one after another; combine matches their items by key; first_present takes the first input that has a value.","type":"string","enum":["append","combine","first_present"]},"inputs":{"description":"The values to merge, as references or {\"$formula\"}: 2 to 10 lists for append and combine, 1 to 10 values for first_present. An empty one (a skipped step) is an empty list, or no value.","type":"array"},"key":{"description":"combine only, and needed there: the field that matches items across the lists, or a dot path of up to 3 levels (company.domain).","type":["string","null"],"default":null},"join":{"description":"combine only: inner keeps items found in every list, left keeps every item of the first list, outer keeps every item. Default outer.","type":["string","null"],"default":null,"enum":["inner","left","outer",null]},"onConflict":{"description":"combine only: which list wins a field two matched items both have, first or last. Default last.","type":["string","null"],"default":null,"enum":["first","last",null]},"dedupeBy":{"description":"append only: drop a later item whose value at this field (or dot path) an earlier item already has.","type":["string","null"],"default":null}},"required":["mode","inputs"]}},{"type":"logic.branch@1","key":"logic.branch","version":1,"kind":"logic","title":"Branch","description":"Routes the run down one of several paths (if / else). Arms are checked in order: the first arm whose `when` formula is true runs the steps in its `next`, and the arm with `else: true` runs when no other arm is true. Arms' `next` replace the step's own `next`; steps reachable only through arms not taken are skipped. When no arm is true and there is no else arm, nothing after the branch runs. Use it to treat records differently, for example qualified accounts vs the rest. Returns `taken`, the label of the arm that ran (null when none ran), and `matched`, the label of every arm whose `when` is true, in arm order (the else arm never), so you can see when a record fitted more than one arm. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"next":{"type":"array","items":{"type":"string"}},"when":{"type":["string","null"],"default":null},"else":{"type":"boolean","default":false}},"required":["label","next"]}}},"required":["branches"]}},{"type":"logic.filter@1","key":"logic.filter","version":1,"kind":"logic","title":"Filter","description":"Continues the run only when a condition holds. `when` is a formula over the trigger, the record and earlier steps; when it is false the run ends as succeeded and every later step is skipped, so nothing after it spends credits or sends. Use it early to drop records that do not fit, for example `{{account.employeeCount}} >= 20`. Returns `passed` (true or false). Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"when":{"type":"string"}},"required":["when"]}},{"type":"logic.for_each@1","key":"logic.for_each","version":1,"kind":"logic","title":"For each","description":"Runs a set of body steps once per item of a list. `items` is a {{reference}} or a formula that gives a list from earlier steps (anything else fails the step); inside the body, `{{item.*}}` is the current item. `steps` are the body steps, written like top-level steps (a for-each cannot hold another for-each more than one level deep: a body may hold one for-each of its own, never a third level, when both loops set `maxItems` and the two multiplied are at most 5,000. In that inner body `{{item.*}}` is the inner item, `{{run.parentItem.*}}` the outer item, and `{{run.itemIndex}}` and `{{run.parentItemIndex}}` are their positions from 0. The inner for-each runs at most 10 divided by the outer `concurrency` items at a time, at least 1. When an inner item fails, the inner for-each fails with `for_each_items_failed` and so does its outer item, unless the inner for-each has `onFailure: continue`). At most `concurrency` items run at a time (1 to 50, default 5). An item fails when any of its body steps fails, and a body step with `onFailure: stop` ends only its own item, never the run. The step finishes when every item is done. Use it for each person found at an account, each URL, each row. Returns `count`, `succeeded` and `failed`. `collect: true` adds `items` to the output: one `{index, status, outputs}` per item run, in order, where `outputs` maps each body step id to its output (null for a body step that failed or was skipped) and `status` is `succeeded` or `failed`; at most 200 items and 200 KB are kept, and `truncated: true` says the list was cut. `maxItems` (1 to 5000) runs only the first that many items of a longer list and reports the rest as `skippedItems`. Free; body steps cost what they cost per item.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"items":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","pattern":"^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*@[1-9][0-9]*$"},"with":{"type":["object","null"],"default":null},"when":{"type":["string","null"],"default":null},"next":{"type":["array","null"],"items":{"type":"string"},"default":null},"onFailure":{"type":["string","null"],"pattern":"^(stop|continue|branch:.+)$"},"retry":{"type":["object","null"],"properties":{"maxAttempts":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"initialDelaySeconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"maxDelaySeconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"default":null},"save":{"type":["array","null"],"items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"]},"default":null},"title":{"type":["string","null"],"default":null},"saveOutputs":{"type":["boolean","null"],"default":null},"titlePinned":{"type":["boolean","null"],"default":null}},"required":["id","type"]}},"concurrency":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"collect":{"description":"True adds items to the output: one { index, status, outputs } per item run, in order. Default false.","type":"boolean","default":false},"maxItems":{"description":"Run at most this many items, 1 to 5000. A longer list runs its first maxItems and reports the rest as skippedItems. Null runs the whole list.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["items","steps"]}},{"type":"logic.formula@1","key":"logic.formula","version":1,"kind":"logic","title":"Formula","description":"Computes new values from earlier results with formulas, without calling anything outside Kenso. `outputs` maps each output name to a formula, for example `lower(trim({{account.primaryDomain}}))` or `if({{qualify.score}} >= 70, 'hot', 'cold')`. Functions include lower, upper, trim, contains, split, len, coalesce, if, round, number, text, now, daysSince, addDays and addBusinessDays (date, days, optional IANA time zone: Monday to Friday on that zone's calendar, same time of day, UTC when the zone is blank or unknown). Returns an object with one field per output name, which later steps reference as {{<step id>.<name>}}; the step fails on the first formula that errors. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"outputs":{"type":"object","additionalProperties":{"type":"string"}}},"required":["outputs"]}},{"type":"logic.wait@1","key":"logic.wait","version":1,"kind":"logic","title":"Wait","description":"Pauses the run, then continues with the next steps. Set one of `seconds` (86400 is one day) or `until`, an ISO 8601 time or a {{reference}} to one; a time in the past or one that cannot be read continues at once. Use it to space out follow-ups or to act at a set time. Returns `resumedAt`, when the run continued. A test run does not wait. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"seconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"until":{"type":["string","null"],"default":null}}}},{"type":"logic.wait_for_event@1","key":"logic.wait_for_event","version":1,"kind":"logic","title":"Wait for event","description":"Parks the run until an event arrives for the run's record, or until the timeout. `event` is the event type (for example `reply.received` (a campaign reply on a lead run, or a 1:1 email, LinkedIn, WhatsApp or iMessage reply on a person run, with `channel`: match {\"channel\": \"whatsapp\"} to wait for one channel; an iMessage reply also carries `classification`, `unclassified` for a photo, voice memo or file with no words), `meeting.booked`, `touch.sent`, or `touch.not_sent` when the touch will not be sent, with `status` skipped or deleted; a failed touch may still be retried, so it resolves neither, or `account.re_engaged` in an account run: a human reply from the account or a third view of its page, with `reason` reply or asset_views, or `facebook.reply_received` (a person on the workspace wrote back on Facebook) or `facebook.friend_accepted` (they accepted a friend request Ken sent) in a person run, each with `personId`, `touchId` or `threadId`, and `facebookAccountId`, or `instagram.replied` (the person wrote back in an Instagram chat with an accepted handle) in a person run, with `personId`, `threadId`, `messageId` and `instagramAccountId` and no message text, or `meeting.guest_returned` in an account run: the meeting's guest booked again from any tool or answered a meeting email, with `reason` rebooked or replied), `match` lists payload fields that must be equal (a list is one of: {\"signal\": [\"funding\", \"hiring\"]} takes either), `timeoutSeconds` defaults to 7 days, `timeoutUntil` (an ISO 8601 time or one {{reference}} to one, such as `{{trigger.followUpAt}}`) times out at that date instead and wins over `timeoutSeconds` when it resolves (a past date times out at once, a blank or unreadable one falls back to `timeoutSeconds`), and `onTimeout` is `continue` (the run goes on with timedOut = true) or `fail`. Use it to react to what a person does after a send, or to let an event race a date. Returns `timedOut` and the matching `event` payload. A test run does not wait: it goes on as if the event arrived (timedOut = false) with no `event` payload. Pin {\"timedOut\": true} to test the timeout path, or {\"timedOut\": false, \"event\": {...}} for steps that read the event. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"event":{"type":"string"},"match":{"description":"Payload fields the event must have, each equal to its value. A list is one of: {\"signal\": [\"funding\", \"hiring\"]} takes either signal; a list payload value is compared whole. Null takes every event of the type for the run's record.","type":["object","null"],"default":null},"timeoutSeconds":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":604800},"onTimeout":{"type":"string","default":"continue"},"timeoutUntil":{"description":"An ISO date, or one {{reference}} to a date, when the wait times out. Wins over timeoutSeconds when it resolves; a past date times out at once; blank or unresolvable falls back to timeoutSeconds.","type":["string","null"],"default":null}},"required":["event"]}},{"type":"meeting.booking_link@1","key":"meeting.booking_link","version":1,"kind":"action","title":"Get the booking link","description":"Gets the lead's booking link: their Kenso scheduler link, else the rep's own booking tool. Returns url and source (kenso or external); with no link, url is null and source is none, so the email asks for a time instead. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object"}},{"type":"meeting.draft_follow_up@1","key":"meeting.draft_follow_up","version":1,"kind":"action","title":"Draft the follow-up","description":"Has Ken draft the follow-up email for a meeting once its notes are ready, written the way its call type says (goal, ask, tone, length, open times, promised material). Leave callType on auto to use the call type Ken picked for the meeting, or set a call type key to write it as that one. The draft waits for the meeting owner's approval in Today and on the meeting's Notes tab; this step itself never sends, but when the owner turned on auto-send in their Notetaker settings, Ken sends a draft for a meeting with no account once it passes Ken's quality review. A meeting that gets no follow-up (no notes, private, internal, the owner turned follow-ups off, the recipient is suppressed, or the call type sends no email) is skipped with a reason, and the workflow continues. Running it twice for one meeting returns the same follow-up. Returns status, reason, callType, kind and touchId. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"meeting_call_types"},{"kind":"flag","key":"meeting_follow_up"}],"inputSchema":{"type":"object","properties":{"meetingId":{"description":"The meeting to write the follow-up for. Use {{trigger.meetingId}} after a Meeting notes ready trigger.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"callType":{"description":"auto (the call type Ken picked, or the one a person chose), or a call type key from GET /v1/meeting-call-types, like discovery, networking or custom_board_update.","type":["string","null"],"default":null}},"required":["meetingId"]}},{"type":"notify.email@1","key":"notify.email","version":1,"kind":"action","title":"Email a teammate","description":"Emails a short plain-text notification to one or more members of the workspace and returns how many were sent and to whom. Use it to tell an owner about a new lead, a reply or a finished run. It can only mail active members of this workspace: a member id, the text owner for the member who published the workflow, or a list of them, at most 20. Any other value fails the step and nobody is mailed. Subject up to 200 characters, body up to 10,000. A member who turned off Emails from workflows in their notification settings is not mailed and is logged as skipped; when every recipient did, the step still succeeds with sent 0 and the steps after it run. Not retried automatically, because a retry could mail a member twice. A test run sends nothing. Free, within a workspace limit of 5,000 workflow emails a day (a tenth of that on the Free plan), which approval notices count toward too: past it nobody is mailed and the step waits for the limit to reset.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who to email: a member id, the text owner (the member who published this workflow), or a list of them. An id may be a number or numeric text, so a reference to a picked member works. Only active members of this workspace are mailed."},"subject":{"description":"Subject line, up to 200 characters after references are filled.","type":"string"},"body":{"description":"Plain text body, up to 10,000 characters after references are filled. Line breaks are kept; HTML is shown as text.","type":"string"}},"required":["to","subject","body"]}},{"type":"opportunity.revival_target@1","key":"opportunity.revival_target","version":1,"kind":"action","title":"Find the deal’s latest thread","description":"On a run about an account, such as trigger.opportunity_stage on a lost deal, finds whom to revive and on which thread. The person is personEmail (pass {{trigger.personEmail}}, the deal's person). Without one, role picks among the account's people: champion reads only its champion, any_stakeholder every stakeholder (the champion included) and keeps the latest reply among them; left out, the champion, else the first stakeholder. Ken takes each person's latest classified campaign reply in the workspace, from any of their lead rows, and keeps it only when that lead's account is the run's account. Returns found and, when true, contactId (the lead), messageId and threadId (the reply to answer), receivedAt, email and personSource (deal, champion or stakeholder); when false, reason no_thread. Pass contactId and messageId to lead.revival_check and reply.draft_in_thread, after a logic.filter on {{<node>.found}} == true. Needs the opportunities and lead_revival features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"personEmail":{"description":"The deal's person: {{trigger.personEmail}} on an opportunity stage run. Leave out, or let it be empty, to use the account's people as role says.","type":["string","null"],"default":null},"role":{"description":"Whose reply to find when personEmail is empty: champion (only the account's champion) or any_stakeholder (the latest reply from any of its stakeholders, the champion included). Leave it out for the champion, else the first stakeholder (priority, then the oldest).","type":["string","null"],"default":null,"enum":["champion","any_stakeholder",null]}}}},{"type":"opportunity.upsert@1","key":"opportunity.upsert","version":1,"kind":"action","title":"Create or update opportunity","description":"Creates or updates the opportunity (the deal) on the run's account (an account run, a person run, or a lead with an account). If the account has an open opportunity, the step moves it to stage and sets the fields you send; otherwise it opens one at that stage with source workflow, named after the account unless you send a name. stage is a key from the workspace pipeline (GET /v1/opportunity-stages), for example interested, meeting_booked, meeting_held, qualified, proposal, won or lost; won and lost close the deal. dealType is new_business, expansion or renewal (a new deal on a customer account defaults to expansion); lostReasonKey (no_budget, timing, competitor, went_quiet, not_a_fit or other) goes only with a lost stage. Use it to keep deals current, for example meeting_booked with an amount when a lead books a meeting. A stage or field a person set by hand is left alone unless overwritePinned is true. Needs the opportunities feature. Returns opportunityId, created, stage, stageCategory, changed and skippedPinned. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"}],"inputSchema":{"type":"object","properties":{"stage":{"description":"Stage key from the workspace pipeline (GET /v1/opportunity-stages), for example interested, meeting_booked, meeting_held, qualified, proposal, won or lost. A won or lost stage closes the opportunity.","type":"string"},"amount":{"description":"Deal value, 0 or more, in the workspace currency. Rounded to cents.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"currency":{"description":"ISO 4217 code. Must be the workspace currency; omit it to use that currency.","type":["string","null"],"default":null},"closeDate":{"description":"Expected close date, YYYY-MM-DD.","type":["string","null"],"format":"date","default":null},"name":{"description":"Opportunity name, up to 300 characters. A new opportunity defaults to the account name.","type":["string","null"],"default":null},"nextStep":{"description":"Next step, up to 2000 characters.","type":["string","null"],"default":null},"ownerMemberId":{"description":"Owner: a member id of this workspace. A new opportunity defaults to the account owner.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"overwritePinned":{"description":"Also change the stage and fields a person set by hand. Default false: those are left as they are.","type":"boolean","default":false},"dealType":{"description":"new_business (New business), expansion (Expansion) or renewal (Renewal). A new opportunity defaults to expansion when the account is a customer (onboarding, client or churned), else new_business.","type":["string","null"],"default":null},"lostReasonKey":{"description":"Why the deal was lost: no_budget (No budget), timing (Timing), competitor (Chose a competitor), went_quiet (Went quiet), not_a_fit (Not a fit) or other (Other). Only with a lost stage.","type":["string","null"],"default":null}},"required":["stage"]}},{"type":"person.add_to_campaign@1","key":"person.add_to_campaign","version":1,"kind":"action","title":"Add to campaign","description":"Person and lead runs, in any workflow. Adds the run's person to the campaign campaignId as a new lead, into the segment you name (segment: its name or id; leave it out for the default segment). The segment you name sticks: the campaign's other segment rules and AI sorting leave the lead there (only that segment's own filter rules can still move it out). Everything the workflow saved on the person, such as a score or a written opener, travels with the lead as custom variables the campaign's emails can use. It adds like a lead upload of one person: dedup, the blocklist, lead credits and the contact allowance apply exactly as for an upload, and the step adds no workflow credits of its own. With skipIfInCampaign (default true) a person already in the campaign is left as it is. Running it again never adds the person twice. Out of lead credits, the step fails and the run waits in Needs attention until the workspace has credits. The step never sends: the campaign's own sequence does. Needs the workflows_plain feature. Returns added, campaignId, contactId, segment, reason (already_in_campaign, blocklisted, duplicate, excluded_country or invalid when nothing was added; limit when the lead was added but the contact allowance is used up) and detail. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_plain"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Campaign of this workspace to add the run's person to, for example 4120 or {{trigger.campaignId}}.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"segment":{"description":"Segment of that campaign a new lead goes into: the segment's name or id. Leave out for the campaign's default segment. The lead stays in the segment you name: the campaign's other segment rules and AI sorting do not move it out.","type":["string","null"],"default":null},"skipIfInCampaign":{"description":"True (the default): a person already in the campaign is left exactly as it is. False: the upload refreshes that lead's name, title and company, as a re-upload does. Either way nobody is added twice.","type":"boolean","default":true}},"required":["campaignId"]}},{"type":"person.intake@1","key":"person.intake","version":1,"kind":"action","title":"Create person","description":"Creates or updates a person from an email address through lead intake, as trigger.mailbox_label's createPerson does before a run: matches the workspace's person with that email or creates one on their company's account (created when the workspace allows it), with source inbound_email by default. Use it after a check, with when, so only the senders that pass become people: for example trigger.mailbox_label with createPerson false, then an ai step, then this step with email {{trigger.from}} and name {{trigger.fromName}}, then send.email with inReplyTo {{trigger.messageId}}. A run about no record becomes about this person, so send.email, account and person steps after it act on them; a run that already has a record keeps it and only gets the ids. A free-mail sender (gmail.com and the like) gets no account, so send.email cannot reach them; with createFreeMailAccount true, one with no account gets an account named after them, with no domain, as its stakeholder (a retry reuses it). Returns personId, accountId, created and runRecord. Waits and retries while lead_intake is off (needs attention) or the workspace's people intake quota is spent; an address intake refuses skips the step and the steps after it. A test run creates nobody and returns the example. Needs lead_intake. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_intake"}],"inputSchema":{"type":"object","properties":{"email":{"description":"Email address of the person to take, e.g. {{trigger.from}}.","type":["string","null"],"default":null},"name":{"description":"Their display name, e.g. {{trigger.fromName}}. Optional; intake splits it into first and last name.","type":["string","null"],"default":null},"source":{"description":"Person source stamped on a new person (first source) and as their latest source. Default inbound_email, as the mailbox label trigger stamps.","type":["string","null"],"default":null},"sourceDetail":{"description":"Detail shown with the source, e.g. the Gmail label name the mailbox label trigger stamps. Optional.","type":["string","null"],"default":null},"createFreeMailAccount":{"description":"True gives a free-mail sender (gmail.com and the like) who has no account one named after them, with no domain, and links them to it as a stakeholder, so send.email and account steps after it can act on them. Default false: a free-mail sender gets no account. Has no effect on a sender with a company domain or one who already has an account, nor while the workspace's intake settings create no accounts.","type":["boolean","null"],"default":null}}}},{"type":"person.research@1","key":"person.research","version":1,"kind":"data","title":"Research person (deep)","description":"Queues a deep research run on the run's person (a person run, or the person of a lead run): LinkedIn, the web, X, Instagram, Facebook, press and podcasts, written up for outreach. The step does not wait for the run; it shows on the person when it ends. Charged as it runs, on the web pages and searches it reads (WebScrape, about 4 credits a run). Free when the person has a deep research that succeeded within freshDays (30 by default), and a run already open is reused. A workspace's workflows start at most 200 deep runs a day; past that the step waits until the next UTC day (its message starts deferred) and tries again. A failure fails the step, and a spend limit with no room shows on the research run itself (spend_scope_exhausted), since the step does not wait. Needs accounts_research. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: queued or fresh, and researchId.","cost":{"free":false,"action":"WebScrape","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_research"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a deep research of this person that succeeded within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365}}}},{"type":"place.deliver@1","key":"place.deliver","version":1,"kind":"action","title":"Deliver the place","description":"Place runs only (a Google Maps place). Sends the place and the people found for it where the workflow says: destination accounts (an account with source google_maps for the place's website domain, the place's phone, address, rating, reviews, categories and Maps link as custom fields, and the found people as its people; no research charge), campaign (the found people with an email become leads of campaignId, or of the workflow's campaign, with the custom variables place_name, place_category, place_city, place_phone, place_rating, place_reviews and place_website) or both. Accounts and both need the workspace's accounts feature; campaign does not. Pass people as {{website.people}} and businessEmails as {{website.businessEmails}}. With businessContactFallback, a place where no found person has an email gets one business lead with its published mailbox (on the place's own domain, else at a free-mail provider) and contact_kind = business. A place with no website gets no account and reaches a campaign only through a business mailbox; the result lists what it skipped and why. Imports like any lead upload (dedup, blocklist, lead credits); running it again adds nobody twice. Marks the place processed for the workspace.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"destination":{"description":"Where the place goes: accounts (an account with its people), campaign (its people as leads) or both. Defaults to accounts.","type":"string","default":"accounts","enum":["accounts","campaign","both"]},"campaignId":{"description":"Campaign id (a decimal string) the people join. Defaults to the workflow's own campaign in a campaign workflow.","type":["string","null"],"default":null},"businessContactFallback":{"description":"When no person found at the place has an email, add one business lead with the place's published mailbox and contact_kind = business. A person the import refuses (a duplicate, a blocklisted address) still counts as found. Defaults to false.","type":"boolean","default":false},"people":{"description":"The people found for the place: {{website.people}} (or {{people.people}}). Each item needs personId.","type":["array","null"],"items":{"type":"object","properties":{"personId":{"description":"Id of a person in this workspace, as the website or people step returns it.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}}},"default":null},"businessEmails":{"description":"The place's published mailboxes: {{website.businessEmails}}. Only a mailbox on the place's own domain (or a subdomain) or at a free-mail provider can be the business lead, the place's own first; others are ignored.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"record.set_owner@1","key":"record.set_owner","version":1,"kind":"action","title":"Set the owner","description":"Makes a workspace member the owner of the run's lead, person or account, or of a deal. Use it after team.pick_member@1 to route an inbound lead, or to hand an account to the rep who booked the meeting. record picks which one (default: the run's own record, or the deal when dealId is set): on a lead run, person is the lead's linked person and account the lead's account; on a person run, account is the person's account. ifSet replace (default) sets the owner whoever owns it now; keep leaves a record that already has an owner alone. cascade on a lead also sets the lead's person and account when they have no owner, once the lead is the member's. The member must be an active member of this workspace (owner_not_member). Fails with owner_record_missing when the run has no such record, and record_not_found for a record of another workspace. A person, account or deal change shows on its timeline with actor workflow. Returns record, recordId, ownerMemberId, previousOwnerMemberId and changed. Free. A save to account.ownerMemberId or person.ownerMemberId leaves an owner a person set by hand alone, but a save to lead.ownerMemberId always replaces the lead's owner, because a lead does not record who set it: to leave a lead's owner alone, use this step with ifSet keep.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"memberId":{"description":"The member who becomes the owner: an active member of this workspace, as a literal id or a reference such as {{pick.memberId}}.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"record":{"description":"Whose owner to set: lead, person, account or deal. Leave it out for the run's own record (or the deal, when dealId is set). On a lead run, person is the lead's linked person and account is the lead's account; on a person run, account is the person's account.","type":["string","null"],"default":null,"enum":["lead","person","account","deal",null]},"dealId":{"description":"With record deal: the deal (opportunity) of this workspace, as a literal id or a reference such as {{deal.opportunityId}}.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"ifSet":{"description":"replace (default) sets the owner whoever owns the record now, a hand-set owner included. keep leaves a record that already has an owner as it is.","type":"string","default":"replace","enum":["replace","keep"]},"cascade":{"description":"Lead only: when the lead ends up owned by the member, also make the member the owner of the lead's person and account, each only when it has no owner yet. A lead that ifSet keep leaves with another owner cascades nothing.","type":"boolean","default":false}},"required":["memberId"]}},{"type":"reply.draft_in_thread@1","key":"reply.draft_in_thread","version":1,"kind":"action","title":"Draft a reply in the thread","description":"Drafts a short Ken follow-up (2 to 4 sentences) on the email thread a lead already answered, for a dead-lead revival: the follow-up they asked for, or a re-engagement after they went quiet. Use it after lead.revival_check says revivable, with messageId the lead's reply. The draft answers from the inbox that received the reply, or another inbox of the workspace on the same email domain. With approval required (the default) it goes in the thread's draft slot in the inbox, where a person reviews and sends it; the run waits until the reply is sent (event reply.sent, up to waitDays, default 14). With approval auto, once the workspace has 20 revivals a person approved and sent, Ken sends it after the reply undo window; before that auto waits for a person like required. A reply the reply agent sends on the thread does not end the wait. A wait that times out fails the step, so set onFailure continue on it. Pass reason (e.g. objection) and one sourced signal the draft may cite; a draft that names any other event (funding, a hire, a launch, news) is not used. followUp true writes the second, shorter nudge. Returns status sent with messageId, sentAt and approvedBy (person or auto) once sent, or status skipped with reason not_a_lead, message_not_found, no_inbox, suppressed, draft_failed, unsourced_claim or draft_slot_busy (a person's own draft is in the slot). A run about a lead, or about an account with contactId the lead at that account (opportunity.revival_target finds it). Needs the lead_revival feature. Costs one send credit per reply that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The lead's inbound reply to answer: {{trigger.messageId}} on a reply-triggered run, or {{<check>.messageId}} after lead.revival_check. Required.","type":"string"},"reason":{"description":"Why Ken follows up, in a few words, e.g. objection or \"lost: price\". The draft refers to it.","type":["string","null"],"default":null},"signal":{"description":"One sourced fact about the lead's company the draft may cite, such as a funding or hiring signal. Only this fact and the thread source a claim; a draft naming any other event is skipped (unsourced_claim).","type":["string","null"],"default":null},"followUp":{"description":"True for the second, shorter nudge on an earlier follow-up that got no answer. Default false.","type":"boolean","default":false},"approval":{"description":"\"required\" (default): the draft waits in the thread's draft slot for a person to send it. \"auto\": Ken sends it after the reply undo window, once the workspace has 20 revivals a person approved and sent; until then it waits for a person like required.","type":"string","default":"required"},"instructions":{"description":"Extra guidance for the draft, e.g. the tone or what to offer.","type":["string","null"],"default":null},"waitDays":{"description":"How many days the step waits for the reply to be sent, 1 to 30. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"contactId":{"description":"On a run about an account, the lead whose reply this answers: {{<target>.contactId}} from opportunity.revival_target. Honored only when that lead's account is the run's account; any other lead skips the step (not_a_lead). Leave out on a run about a lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["messageId"]}},{"type":"report.query@1","key":"report.query","version":1,"kind":"action","title":"Read a report","description":"Reads Kenso data for a digest: the workspace's workflow runs or its campaign replies over the last days, as rows or as counts. dataset is workflow_runs, replies, sends, opens, clicks, meetings or campaigns. windowDays (1 to 90, default 7) is how many whole UTC days to read, ending at the start of today. filters narrows the read: workflowId, status and isTest for workflow_runs; campaignId and classification for replies. groupBy returns { key, count } rows, largest first: status, workflow or day for workflow_runs; classification, campaign or day for replies. Without groupBy the rows are the newest runs or replies, up to limit (1 to 200, default 50); total is how many match and truncated says more exist. Replies are the ones a person wrote: bounces, automated mail and out-of-office are left out, and a grouped count is of distinct leads. Runs of Ken's own system workflows are left out. Read-only, so a test run reads for real. Free. Campaign datasets: sends (filters campaignId, channel; groupBy campaign, day or channel); opens (filters campaignId; groupBy campaign or day); clicks (filters campaignId; groupBy campaign or day); meetings (filters campaignId; groupBy campaign or day); campaigns (filters campaignId, status; groupBy none). Without groupBy a campaign dataset returns one totals row; with it, { key, count } rows, largest first, with id for a campaign; total is the main number over the whole window. campaigns instead returns one row per campaign with activity in the window, most sent first; total is how many campaigns match, and truncated says more exist past the 200 campaigns that contacted the most leads. Grouped by campaign, sends, clicks or meetings rank the 200 campaigns that contacted the most leads in the window, and truncated says more exist. meetings rows are { booked, held }, campaign meetings booked and held; held is null, not 0, where the workspace does not track held meetings. meetings by day or campaign lists only those with bookings, and a day's held counts the meetings scheduled that day. campaigns rows and its status filter use the campaign list's words: active, draft, building, ready, paused, completed, error or archived. opens or campaigns are estimates: the output says estimate: true.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"dataset":{"description":"What to read: workflow_runs, replies, sends, opens, clicks, meetings or campaigns.","type":"string","enum":["workflow_runs","replies","sends","opens","clicks","meetings","campaigns"]},"windowDays":{"description":"How many whole UTC days to read, ending at the start of today, 1 to 90. Default 7.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7,"minimum":1,"maximum":90},"filters":{"description":"Narrows the read. workflow_runs takes workflowId, status and isTest (default false); replies takes campaignId and classification.","type":["object","null"],"default":null},"groupBy":{"description":"Count instead of list: status, workflow or day for workflow_runs; classification, campaign or day for replies.","type":["string","null"],"default":null},"limit":{"description":"The most rows or groups to return, 1 to 200. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"minimum":1,"maximum":200}},"required":["dataset"]}},{"type":"send.email@1","key":"send.email","version":1,"kind":"action","title":"Send email","description":"Queues a 1:1 email to a person on the run's account (an account run, a person run, or a lead with an account). It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\" outside a meeting run: Ken approves it once its text is final and passed review, only in a workspace with the workflows_auto_send_email and workflows_auto_send flags), then the run waits until the email is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give subject and body to send your own text. Without a body the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it (workspaces with the accounts_writer flag) or a person writes it on the account; pass instructions to guide them. The run waits meanwhile. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account; needs attention when the account has no one in that role or the person has no email. Returns touchId, status (pending_approval or scheduled) and drafted. A touch the send pass fails (status failed) stays in Today for a retry, and the run keeps waiting until it is sent or the wait times out. When the workspace's Contact limits refuse the touch (the check an agent's POST /v1/touches gets), none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt, and the run goes on. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. Text that names an event (funding, a hire, a launch, news, an award) that no signal, dossier fact or research source on the account mentions creates no touch either: the step succeeds with status skipped and reason unsourced_claim, and the run goes on. With inReplyTo (the msg_ id of a stored email of the workspace) the touch answers that email inside its thread: it goes out as the Re: of that email with its In-Reply-To and References, the thread's subject replaces subject, and without to it goes to the person who sent that email (they must be on the run's account). It goes only to someone on that email (its sender, a To or a Cc), since it quotes that email; an unknown id, or a to who is not on it, fails the step message_not_found. fromInbox names the inbox to send from, by id or address; left out, the account's Sends from inbox or its owner's primary inbox sends it, and with inReplyTo the inbox that received that email. The inbox's owner approves the touch. A member's own mailbox sends, and its mail is answered, only for the person who published the workflow (inbox_not_owned otherwise); an unknown inbox fails inbox_not_found. In a workflow that a meeting trigger starts (trigger.meeting_booked@2, trigger.meeting_starts@1 or trigger.meeting_changed@1) the step is a meeting email: to \"meeting_guest\" (or to left out) is the meeting's guest, fromInbox \"meeting_host\" the host's own mailbox, and inReplyTo \"meeting_thread\" the newest email thread with the guest that the chosen mailbox may answer, else a new email. sendBy is the time after which the email is skipped instead of sent late (left out: the meeting's start, or 72 hours after the step runs for a meeting_changed run, 7 days after a cancel or a no-show with meeting_rebook_chase on). approval \"auto\" with a fixed subject and body (trigger and record fields only, never another step's output) sends without a person; an email Ken writes is reviewed first, except in a trigger.meeting_changed@1 workflow on only cancelled and no_show with meeting_rebook_chase on, where approval \"auto\" lets Ken's quality check approve it in place of a person. Only the email to the meeting's guest is a meeting email: it ignores the guest's do-not-contact flag, the account's stage (an archived account still gets none) and the Contact limits (and the send window, except after a cancel or a no-show with meeting_rebook_chase on), still honors unsubscribes, the blocklist and bounces, and creates no touch (status skipped) with reason meeting_cancelled, meeting_moved, meeting_started, send_by_passed, meeting_guest_missing or no_host_mailbox when the meeting or its time no longer fits, reschedule_note_planned when Ken's reschedule note or the reply agent's confirmation already tells the guest about the move, or reminder_handed_back when the booking's 24-hour reminder went back to Kenso's own reminder, or guest_rebooked or guest_replied when, after a cancel or a no-show, the guest booked again or replied, or guest_do_not_contact when the guest's cancel note asks not to be contacted again (trigger.doNotContact). An email in a meeting run to anyone else follows every normal rule and always waits for a person. These values are refused in any other workflow. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. Left out: economic_buyer, or with inReplyTo the person who sent that email (they must be on the run's account). With inReplyTo, only someone on that email (its sender, a To or a Cc). In a workflow a meeting trigger starts: \"meeting_guest\" for the meeting's guest, which is also who a left-out to means there.","type":["string","null"],"default":null},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\" works for a meeting email to the meeting's guest (a workflow whose triggers are all meeting triggers) with a fixed subject and body, written with trigger and record fields only, not another step's output: it then sends without a person. Any other email on \"auto\" sends without a person only in a workspace with the workflows_auto_send_email and workflows_auto_send flags, once its text is final (Ken's draft must pass its review); elsewhere it waits for a person, so \"auto\" works the same as \"required\" there. Publishing it on \"auto\" needs both flags.","type":"string","default":"required"},"subject":{"description":"Email subject. Leave out with body to let Ken's writer or a person draft it. With inReplyTo the email keeps its thread's subject (\"Re: \" and the email's subject), so the reply stays in the thread; a subject given here is replaced.","type":["string","null"],"default":null},"body":{"description":"Email body. Without a body the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever drafts the email when subject and body are not given. Stored on the touch.","type":["string","null"],"default":null},"fromInbox":{"description":"The inbox to send from: its id or its email address, an inbox of this workspace. A member's own mailbox only when the person who published the workflow owns it. Left out: the account's Sends from inbox, else a pool inbox (isAccountsSender; not for a meeting trigger's guest), else its owner's primary inbox; with inReplyTo, the inbox that received that email. In a workflow a meeting trigger starts: \"meeting_host\" for the meeting host's own mailbox.","type":["string","null"],"default":null},"inReplyTo":{"description":"The msg_ id of a stored email of this workspace to answer inside its thread: a message's id from the threads API (trigger.reply@1's messageId is the stored native id, not a msg_ id). The touch sends as the Re: in that thread, with In-Reply-To and References, from the inbox that received it unless fromInbox names another. An email in a member's own mailbox only for a workflow that member published. In a workflow a meeting trigger starts: \"meeting_thread\" replies in the newest email thread with the guest that the chosen mailbox may answer, else it is a new email.","type":["string","null"],"default":null},"sendBy":{"description":"Meeting emails only (a workflow whose triggers are all meeting triggers): the time after which the email is skipped instead of sent late, reason send_by_passed. An ISO time such as 2026-11-12T13:00:00Z, or one reference such as {{trigger.startsAt}}. Left out: the meeting's start, or 72 hours after the step runs in a trigger.meeting_changed@1 workflow (7 days after a cancel or a no-show with meeting_rebook_chase on).","type":["string","null"],"default":null}}}},{"type":"send.facebook@1","key":"send.facebook","version":1,"kind":"action","title":"Send on Facebook","description":"Queues a Facebook touch to a person on the run's account (an account run, a person run, or a lead with an account) from the account's Sends from Facebook account, else, when none is set, its owner's. `kind` picks it: message (a direct message), friend_request, follow, like (a like on a recent post) or comment (a comment on a recent post). It creates an Accounts touch that waits in Today for a person to approve it, then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The person needs a confirmed Facebook profile (find.facebook_profile@1 finds one); without one the step skips with reason no_facebook_profile and the run goes on. Give text to send your own words (kind message only). Without text the touch is created planned and waits for Ken's writer (the accounts_writer flag) or a person to write it; pass instructions to guide them. Friend request, follow, like and comment carry no text of yours and need Ken's writer, which puts them up for approval and writes a comment: with accounts_writer off they fail with accounts_writer_off. With the workspace's facebook_outreach flag off, every kind fails with facebook_outreach_off and creates no touch. A friend request carries no note. Below the account's mutual-friends minimum (10 by default), or when Facebook gives no mutual-friend count, Ken skips a friend request (status skipped) and creates a first message in its place; Ken's writer drafts that message and it then waits in Today for approval. To send an AI voice note with a message, give send.facebook@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Facebook sends a voice note only into a chat Kenso already has with the person, and then without the text; a first message sends the text alone. images (at most 4 touch image att_ ids from POST /v1/touch-images, kind message only) go after the text, each as its own message; an unknown id fails with image_not_found. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account. \"auto\" approval is accepted, but a Facebook touch still waits for a person in Today. When the workspace's Contact limits refuse the touch, none is created and the step succeeds at once with status skipped and reason contact_limit, as send.linkedin@1 does; text that names an event nothing on the account sources skips with reason unsourced_claim. Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"facebook_outreach"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The person needs a confirmed Facebook profile; one without is skipped (reason no_facebook_profile).","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\" is accepted, but a Facebook touch still waits for a person in Today, as an email does. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"kind":{"description":"\"message\" (default) for a direct message, \"friend_request\", \"follow\", \"like\" for a like on a recent post, or \"comment\" for a comment on a recent post. Friend request, follow, like and comment need Ken's writer (the accounts_writer flag). Below the account's mutual-friends minimum, or when Facebook gives no mutual-friend count, Ken skips a friend request and its writer drafts a first message in its place, which then waits in Today for approval.","type":"string","default":"message","enum":["message","friend_request","follow","like","comment"]},"text":{"description":"Message text, kind message only. Without text the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever writes the message or the comment. Stored on the touch.","type":["string","null"],"default":null},"images":{"description":"Touch image att_ ids (upload with POST /v1/touch-images) to send after the message, kind message only, at most 4, each its own message. An id that is not a touch image of this workspace fails the step (image_not_found).","type":["array","null"],"items":{"type":"string"},"default":null},"voiceNote":{"description":"An AI voice note for the message (kind message only): give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch; a note in any other status leaves a text-only touch. Facebook sends a voice note only into a chat Kenso already has with the person, and then without the text; a first message sends the text alone, so keep text or instructions here for that case. A voice note also needs the linkedin_voice_notes or whatsapp flag; imessage alone does not carry one here.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null}}}},{"type":"send.imessage@1","key":"send.imessage","version":1,"kind":"action","title":"Send iMessage","description":"Queues an iMessage text to a person on the run's account (an account run, a person run, or a lead with an account), sent from the workspace's iMessage line for that account. It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\": Ken approves it once its text is final and passed review, its voice note (if any) is ready and the person's number is known; a text that would answer the person in a conversation or go to a person who said no on any channel, or a first text with a link, email address, phone number or money amount, still waits for a person; publishing needs the workflows_auto_send flag), then the run waits until the touch settles (event touch.settled, up to 14 days): sent, skipped, deleted or failed. Unlike the email and LinkedIn send steps, the step ends and succeeds on each of them, with status and reason, so a later step can branch on {{text.status}} and reach the person by email or LinkedIn instead. Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The text goes to the person's mobile number. A person who opted out of phone contact (a STOP reply, a member's opt-out, or a do-not-call they asked for on a call) gets no touch: the step succeeds at once with status skipped, reason phone_opt_out and no touchId, and no number is looked for or charged. So does a person the send would still fail as suppressed once the step's own skip (below) let them through, mostly one at an account domain on the blocklist, or with a contact whose own email or company domain is on it: status skipped, reason suppressed:<reason> (suppressed:blocklisted, or suppressed:do_not_contact or suppressed:unsubscribed for a contact that skip did not match), no touchId. When the step creates the touch for a person with no number on file, Ken looks for one (each number found costs credits, like Find phone on a person); when none is found the touch is skipped with reason no_phone. A person a provider the workspace's own key asked flagged do not call gets no number looked for and no text written: the touch is skipped with reason do_not_call (a text a member approves still goes on a thread where the person has written). Give text to send your own words. Without text the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it or a person writes it on the account; pass instructions to guide them. A first text to someone who has not replied is plain words only: no links, email addresses, phone numbers or money amounts, and no images. images takes up to 10 https image links or ids of images uploaded to Kenso; they go once the person has replied. To send an AI voice note, give send.imessage@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note); a bare or nested voiceNoteId is an error at validate, test run and publish. A voice note goes only once the person has replied on an iMessage (not SMS) thread: for anyone else the voice note step fails at once, unwritten and uncharged (recipient_must_reply or sms_thread), and the text goes alone, with either approval. A text carries images or a voice note, not both: a step with both is an error at validate, test run and publish. The step itself is skipped, with no output, when the person has a contact marked do-not-contact or unsubscribed (do_not_contact), their own email or its domain is on the blocklist (contact_blocked), or they are marked not_targeted on the account. When the workspace's Contact limits refuse the touch, none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. The line's own daily cap, ramp-up and new-conversation limit are not Contact limits: a text over one is held at send time until the line has room (imessage_line_limit) and the run keeps waiting. Text that names an event (funding, a hire, a launch, news, an award) that nothing on the account sources creates no touch either: status skipped, reason unsourced_claim. A member who retries a failed text in Today still sends it after the step has moved on. Costs one send credit per text that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"imessage"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The text goes to their mobile number; with none on file, Ken looks for one first. A person who opted out of phone contact gets no touch and no look (reason phone_opt_out).","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review), its voice note (if any) is ready and the person's mobile number is known. A voice note is made only for a person who replied on an iMessage (not SMS) thread, so with either approval a text to anyone else goes alone. A text that would answer the person in a conversation or go to a person who said no on any channel, or a first text with a link, email address, phone number or money amount, still waits for a person. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"text":{"description":"The text to send, written the way one person texts another. Without text the touch is created planned and is not in Today until Ken's writer or a person writes it on the account; the run waits meanwhile. A first text to someone who has not replied yet carries no links, email addresses, phone numbers or money amounts. At most 4,096 characters: a longer fixed text is an error (imessage_text_too_long) when the workflow is validated, test-run or published, and a draft save keeps it as it keeps every other step error; a text with a {{...}} reference is checked when it is sent.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever writes the text when text is not given. Stored on the touch.","type":["string","null"],"default":null},"voiceNote":{"description":"An AI voice note to send as an iMessage audio message: give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is an error when the workflow is validated, test-run or published. A voice note goes only once the person has replied on an iMessage (not SMS) thread: for anyone else the voice note step fails at once, unwritten and uncharged, with failureReason recipient_must_reply or sms_thread, and the touch is text only, with either approval. A ready note goes on the touch, so the person approving it in Today can play it first. A note in any other status leaves a text-only touch. A note of another workspace or run, or about another person, needs attention. Not with images: a text carries images or a voice note, not both.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"images":{"description":"Up to 10 images to send with the text: https links, or ids of images uploaded to Kenso for iMessage. A link is stored as given and fetched when the text goes out. Images go only once the person has replied; on a first text Kenso sends the words alone. Not with voiceNote: a text carries images or a voice note, not both.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10}}}},{"type":"send.instagram@1","key":"send.instagram","version":1,"kind":"action","title":"Send on Instagram","description":"Queues an Instagram touch to a person on the run's account (an account run, a person run, or a lead with an account). It sends from instagramAccountId, else the account's Sends from Instagram account, else the one its owner connected. `kind` picks it: dm (a direct message), follow, like (a like on a recent post) or comment (a comment on a recent post). It creates an Accounts touch that waits in Today for a person to approve it, then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The person needs an accepted Instagram handle (data.find_instagram@1 finds candidates, a person accepts one); without one the step needs attention. Give text to send your own words (kind dm only; never with follow, like or comment: Ken writes a comment from instructions once it picks the post). Without text the touch is created planned and waits for Ken's writer or a person to write it; pass instructions and Ken writes from them. A DM can carry up to 3 images (att_ ids of images uploaded for Instagram) and an AI voice note: give send.instagram@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note), made with channel \"instagram\" so it is an m4a. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account. \"auto\" approval is accepted, but an Instagram touch still waits for a person in Today. When the workspace's Contact limits refuse the touch, none is created and the step succeeds at once with status skipped and reason contact_limit, as send.linkedin@1 does; text that names an event nothing on the account sources skips with reason unsourced_claim. A DM the person does not accept from accounts they do not follow fails the touch (recipient_refused), and a like or comment with no recent post Kenso can read is skipped (no_recent_post). Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. There is no threadRef output: later steps use touchId. A DM or a comment costs one send credit once it is sent, charged when the send is confirmed; follows and likes are free. Needs the accounts and instagram features.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"instagram"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The person needs an accepted Instagram handle (verified or set by hand); one without fails the step as needs attention.","type":"string"},"approval":{"description":"\"required\": the touch waits in Today for a person to approve it. \"auto\" is accepted, but an Instagram touch still waits for a person in Today. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string"},"kind":{"description":"\"dm\" for a direct message, \"follow\", \"like\" for a like on a recent post, or \"comment\" for a comment on a recent post. A like or comment with no recent post Kenso can read is skipped (reason no_recent_post). Follows and likes are free.","type":"string","enum":["dm","follow","like","comment"]},"text":{"description":"The DM, fixed or with {{references}} (kind dm only). Not with follow, like or comment: Ken writes a comment from instructions once it picks the post. Without text the touch is created planned and waits for Ken's writer or a person to write it; give instructions to guide them.","type":["string","null"],"default":null},"instructions":{"description":"What Ken should write when text is empty: Ken drafts the DM or the comment from these and the person's context. Stored on the touch and given to Ken's writer as their own section.","type":["string","null"],"default":null},"images":{"description":"Up to 3 att_ ids of images uploaded for Instagram, sent with the DM (kind dm only).","type":["array","null"],"items":{"type":"string"},"default":null},"voiceNote":{"description":"An AI voice note for the DM (kind dm only): give it the whole ai.voice_note step about the same person, made with channel \"instagram\" so the note is an m4a, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch; a note in any other status leaves a text-only touch. A voice note needs the instagram and linkedin_voice_notes features.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"instagramAccountId":{"description":"Send from this Instagram account id of the workspace. Leave it out for the account's Sends from Instagram account, else the one its owner connected.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["to","approval","kind"]}},{"type":"send.linkedin@1","key":"send.linkedin","version":1,"kind":"action","title":"Send LinkedIn message","description":"Queues a LinkedIn message or connection request to a person on the run's account (an account run, a person run, or a lead with an account). `kind` picks which: message or connect. It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\": Ken approves it once its text is final and passed review; publishing needs the workflows_auto_send flag), then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give text to send your own words (the note of a connection request). Without text the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it (workspaces with the accounts_writer flag) or a person writes it on the account; pass instructions to guide them. The run waits meanwhile. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account; needs attention when the account has no one in that role or the person has no LinkedIn URL. In a run a meeting trigger starts, the touch to the meeting's guest ignores the guest's do-not-contact flag, not_targeted mark, the account's stage (an archived account still gets none) and the Contact limits, and still honors the blocklist; after a cancel whose note asks not to be contacted (trigger.doNotContact) the guest gets none (status skipped, reason guest_do_not_contact); anyone else follows every rule here. Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. To send an AI voice note with the message (kind message only), give send.linkedin@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note); a bare or nested voiceNoteId is refused at save. A ready note goes on the touch so Today plays it before approval, a note that is not ready leaves a text-only touch, and a note of another workspace, run or person needs attention. A touch the send pass fails (status failed) stays in Today for a retry, and the run keeps waiting until it is sent or the wait times out. When the workspace's Contact limits refuse the touch (the check an agent's POST /v1/touches gets), none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt, and the run goes on. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. Text that names an event (funding, a hire, a launch, news, an award) that no signal, dossier fact or research source on the account mentions creates no touch either: the step succeeds with status skipped and reason unsourced_claim, and the run goes on. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id.","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review) and its voice note is ready. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"kind":{"description":"\"message\" (default) for a direct message, \"connect\" for a connection request.","type":"string","default":"message"},"text":{"description":"Message text, or the note of a connection request. Without text the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever drafts the message when text is not given. Stored on the touch.","type":["string","null"],"default":null},"voiceNote":{"description":"An AI voice note to send with the message (kind message only): give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch, so the person approving it in Today can play it first. A note in any other status leaves a text-only touch. A note of another workspace or run, or about another person, needs attention. The text is the fallback: write it as the message to send if the voice note cannot go.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null}}}},{"type":"send.whatsapp@1","key":"send.whatsapp","version":1,"kind":"action","title":"Send WhatsApp message","description":"Queues a WhatsApp message to a person on the run's account (an account run, a person run, or a lead with an account). It creates an Accounts touch, then the run waits until it is sent (event touch.sent, up to 14 days) or will not be sent (touch.not_sent). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give exactly one of text (your words, {{references}} allowed), instructions (Ken writes it in the person's language) or templateId with templateMode (as_is: the template's words, personalize: Ken rewrites it for the person). images adds up to 6 uploaded images; voiceNote (an ai.voice_note@1 step of this run, given whole) or voiceId (Ken reads the text aloud) sends a voice note. Ken finds the person's WhatsApp number before the send (findNumber false: only free numbers). from picks the WhatsApp account. approval \"required\" (default) waits in Today for a person; \"auto\" is approved by Ken once the text is final and passed review, the voice note is ready and the number is found, and needs the workflows_auto_send flag to publish. Returns touchId, status and, when it was not sent, reason: no_phone, not_on_whatsapp, opted_out, country_blocked, unanswered_limit or contact_limit, so the workflow can branch on {{<step id>.reason}}. Needs the accounts and whatsapp features. Charged per sent message.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"whatsapp"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who gets the message: a committee role such as economic_buyer, \"record\" for the run's person, or a person id.","type":["string","null"],"default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review), its voice note is ready and its number is found. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":["string","null"],"default":"required"},"text":{"description":"The message, fixed or with {{references}}. Give exactly one of text, instructions or templateId.","type":["string","null"],"default":null},"instructions":{"description":"What Ken should write: Ken drafts the message from the person's context in their language. Give exactly one of text, instructions or templateId.","type":["string","null"],"default":null},"templateId":{"description":"A message template id. Give exactly one of text, instructions or templateId.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"templateMode":{"description":"as_is (default): send the template's words with its variables filled in. personalize: Ken rewrites the template for the person, keeping its offer, order and links.","type":["string","null"],"default":null},"images":{"description":"Up to 6 uploaded image media ids sent with the message.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"voiceNote":{"description":"An ai.voice_note@1 step of this run about the same person, given whole: \"voiceNote\": \"{{note}}\". Sent as a voice note with the message.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"voiceId":{"description":"A voice id: Ken reads the final text aloud in this voice and sends it as a voice note. Use voiceNote or voiceId, not both.","type":["string","null"],"default":null},"voiceProvider":{"description":"The voiceId's provider: elevenlabs (default) or deepgram.","type":["string","null"],"default":null},"findNumber":{"description":"Pay to find a number when none is free. Default true.","type":"boolean","default":true},"from":{"description":"Send from this WhatsApp account id. Leave out for the account's Sends from WhatsApp account, else the account owner's.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"slack.message@1","key":"slack.message","version":1,"kind":"action","title":"Post to Slack","description":"Posts a message to a Slack channel as the workspace's Kenso Slack bot and returns the message ts and channel id. Use it to alert a team about a hot lead, a reply or a finished run. Needs the Slack app connected in the workspace; until it is, the step fails with a setup error. Not retried automatically: Slack does not drop duplicate posts, so a retry could post the message twice. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"slack"}],"inputSchema":{"type":"object","properties":{"channel":{"description":"Channel id (C0123456789) or name (#sales-alerts). The Kenso bot must be a member of private channels.","type":"string"},"text":{"description":"Message text (Slack mrkdwn). Also the notification text when blocks are set. Values from {{references}} are escaped, so run data cannot add mentions or links.","type":"string"},"blocks":{"description":"Optional Slack Block Kit blocks, written as literal JSON. References inside their strings are escaped; a reference cannot supply a block or a whole list.","type":["array","null"],"default":null},"threadTs":{"description":"Reply in this thread: the ts of the parent message.","type":["string","null"],"default":null}},"required":["channel","text"]}},{"type":"studio.page@1","key":"studio.page","version":1,"kind":"action","title":"Build Studio page","description":"Fills a Studio page for the run's account and returns the person's tracked link to it. One page per account and template: a later run refills the same page, a live page keeps its links. to picks the person (\"record\", the default, a committee role or a person id); slots prefills slot values, for example {\"intro\": \"{{grade.body}}\"}, checked against each slot's schema, and a recipe step whose every slot is prefilled is skipped. The run waits for the fill without holding a worker (waitMinutes, default 30, at most 120). The link is made only when the page is ready (every grade passed): status ready with url, previewUrl, slotStatus and charged (true when the link was the page's first). A page that needs review or failed ends the step with status needs_review and no url, and onFailure decides what happens next. Costs what Studio charges: the fill's data and model credits, plus 1 credit for the page's first link. Test runs return the example output and fill nothing. Needs the Studio and Accounts features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"studio"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"templateId":{"description":"The Studio template to fill: a published page or doc template of the workspace. Pick it from GET /v1/asset-templates.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"to":{"description":"Who the link is for: \"record\" (the run's person, the default), a committee role such as economic_buyer (its top priority stakeholder), or a person id. The person must be a live stakeholder of the run's account.","type":["string","null"],"default":null},"slots":{"description":"Optional slot values the page starts with, slot name to value, for example {\"intro\": \"{{grade.body}}\"}. Each is checked against the slot's schema like a fill's own value; a bad one fails that slot and the page shows its fallback. A recipe step whose every slot is given here is skipped, and later prompts read the given value. Unknown slots are dropped with a warning. List the template's slots, with their types, from GET /v1/asset-templates/{templateId}/slots.","type":["object","null"],"default":null},"executor":{"description":"Who fills the page: ken (the default and the only executor a workflow runs).","type":["string","null"],"default":null},"waitMinutes":{"description":"How long the step waits for the fill, in minutes: 1 to 120, default 30. The run waits without holding a worker; past it the step fails.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["templateId"]}},{"type":"system.ai_flow@1","key":"system.ai_flow","version":1,"kind":"ai","title":"AI flow (system)","description":"Kenso's own AI pipeline only (system workflows): asks the model what the old AI flow job (flow: qualification, personalization or segmentation) would ask for the run's lead, and parses the answer as that job does. Charges nothing. A live run spools the chat model's request into the job's vendor batch and waits for ai_batch.completed; the batch poller writes that result, system.ai_save writes any other. Returns the provider, model, token counts and the parsed answer: qualification { qualified, score, reasoning }, personalization { lines: [ { promptId, text } ] }, segmentation { segmentId, segmentName, reasoning, fallback }.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"flow":{"description":"The old AI flow to run for the contact: qualification, personalization or segmentation.","type":"string"}},"required":["flow"]}},{"type":"system.ai_save@1","key":"system.ai_save","version":1,"kind":"data","title":"Save AI flow result (system)","description":"Kenso's own AI pipeline only (system workflows): writes a system.ai_flow result for the run's lead as the old AI flow job (flow: qualification, personalization or segmentation) writes it: the qualification verdict, the personalization lines or the segment. Returns whether it was written and, when not, why.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"flow":{"description":"The old AI flow whose result this is: qualification, personalization or segmentation.","type":"string"},"result":{"description":"The system.ai_flow@1 output to write.","type":"object"}},"required":["flow","result"]}},{"type":"system.linkedin_action@1","key":"system.linkedin_action","version":1,"kind":"action","title":"LinkedIn action","description":"Kenso's own LinkedIn sequences only (system workflows): takes one due LinkedIn state of the run's lead and does what the LinkedIn action scheduler would do with it: the next sequence action (visit, invite, message, InMail, withdraw) from the lane's seat under its caps, spacing and working hours, a skip, or a defer. A shadow run only decides and writes nothing; a live run acts through the scheduler's own path (seat lock, idempotency key, reconciliation of an unknown result). Returns the decision, its reason and, live, the execution outcome.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"stateId":{"description":"The due contact_linkedin_state row of the run's lead ({{trigger.stateId}}).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"stepOrder":{"description":"The state's step when the run started ({{trigger.stepOrder}}).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"dueAt":{"description":"The state's due time when the run started ({{trigger.dueAt}}); null for a state with none.","type":["string","null"],"format":"date-time"}},"required":["stateId","stepOrder"]}},{"type":"system.send_plan@1","key":"system.send_plan","version":1,"kind":"data","title":"Plan sends","description":"Kenso's own send planning only (system workflows): runs the gap-fill planner for the run's workspace as it runs every 10 minutes. A shadow run collects the rows it would insert into the send queue instead of writing them; a live run inserts them, only once Kenso has moved the workspace's send planning to the engine. Returns the workspace's done, target and shortfall, each campaign's target and limiter, the skip counts, how many rows it would insert (or inserted) and, for a shadow run, the rows themselves (capped).","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object"}},{"type":"system.trigger_evaluate@1","key":"system.trigger_evaluate","version":1,"kind":"data","title":"Evaluate the campaign trigger","description":"Kenso's own campaign triggers only (system workflows): evaluates the signal of {{trigger.*}} against campaign trigger `definitionId` exactly as the trigger evaluation job does: test signals only for test campaigns, the trigger's audience filter, its parameters, its per-lead cooldown and the firing's dedup key. A shadow run decides without writing (would_fire); a live run inserts the firing the trigger's fast lane then queues, only once Kenso has moved the workspace's campaign triggers to the engine. Returns the outcome and the firing's dedup key.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"definitionId":{"description":"The campaign trigger (trigger_definition id) to evaluate.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"signalId":{"description":"Id of the signal.","type":"string"},"signalType":{"description":"The signal's type name, e.g. LinkClicked.","type":"string"},"source":{"description":"The signal's source name, e.g. InternalEmailEngagement.","type":"string"},"contactId":{"description":"The lead the signal is about.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"campaignId":{"description":"The lead's campaign, when the signal names one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"campaignSegmentId":{"description":"The lead's campaign segment, when the signal names one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"payloadJson":{"description":"The signal's own details as JSON text.","type":["string","null"]},"synthetic":{"description":"A test signal.","type":"boolean"},"occurredAt":{"description":"When the signal happened (UTC).","type":"string","format":"date-time"},"ingestedAt":{"description":"When the signal reached the stream (UTC).","type":"string","format":"date-time"},"signalDedupKey":{"description":"The signal's own idempotency key.","type":"string"}},"required":["definitionId","signalId","signalType","source","contactId","synthetic","occurredAt","ingestedAt","signalDedupKey"]}},{"type":"table.delete@1","key":"table.delete","version":1,"kind":"action","title":"Delete table rows","description":"Deletes rows from a workspace data table, one row by its key or every row that meets the conditions. Set key (each key column with its value) or where, never both; an empty where deletes nothing and fails the step. Returns deleted, the number of rows removed, which is 0 when nothing matched. A table the workspace does not have is a setup error. In a test run it deletes test rows only, so a test never removes a real row.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"key":{"description":"The key of the one row to delete: every key column of the table with its value. Set this or where, not both.","type":["object","null"],"default":null},"where":{"description":"Conditions for the rows to delete, all of them, at most 10. Set this or key, not both.","type":["array","null"],"items":{"type":"object","properties":{"column":{"description":"The column to compare.","type":"string"},"op":{"description":"How to compare: eq, ne, gt, gte, lt, lte, contains, in, is_empty or is_not_empty.","type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","in","is_empty","is_not_empty"]},"value":{"default":null}},"required":["column","op"]},"default":null}},"required":["table"]}},{"type":"table.find@1","key":"table.find","version":1,"kind":"action","title":"Look up table rows","description":"Looks up rows in a workspace data table. Conditions in where are joined by and; sort orders the rows and limit caps them at 200. Returns rows, count, found and first, so a filter on found branches on whether anything matched. Set aggregate to also get count, sum, min, max or avg over every matching row, not only the rows returned. A table the workspace does not have is a setup error. In a test run it also reads the rows earlier test runs saved.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"where":{"description":"Conditions a row must meet, all of them, at most 10. Left out: every row.","type":["array","null"],"items":{"type":"object","properties":{"column":{"description":"The column to compare.","type":"string"},"op":{"description":"How to compare: eq, ne, gt, gte, lt, lte, contains, in, is_empty or is_not_empty.","type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","in","is_empty","is_not_empty"]},"value":{"default":null}},"required":["column","op"]},"default":null},"sort":{"description":"A column name to sort by, or -column for descending. Left out: the order rows were added.","type":["string","null"],"default":null},"limit":{"description":"The most rows to return, 1 to 200. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"minimum":1,"maximum":200},"aggregate":{"description":"A number computed over every row that meets the conditions, not only the rows returned.","type":["object","null"],"properties":{"function":{"description":"What to compute: count, sum, min, max or avg.","type":"string","enum":["count","sum","min","max","avg"]},"column":{"description":"The number column to read. Needed for all but count.","type":["string","null"],"default":null}},"required":["function"],"default":null}},"required":["table"]}},{"type":"table.upsert@1","key":"table.upsert","version":1,"kind":"action","title":"Save to table","description":"Saves a row to a workspace data table and says whether it was new. Rows with the same key columns are one row: the first run creates it and a later run updates it or leaves it unchanged, so a filter on created acts once per key across runs. A table with no key always adds a row. Returns result (created, updated or unchanged), the three flags, rowId and the row as stored. A table the workspace does not have is a setup error: the run waits until the table exists. In a test run it writes test rows only, which real runs never read and which are removed after 24 hours.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"row":{"description":"The row to save: column name to value. It holds every key column of the table.","type":"object"}},"required":["table","row"]}},{"type":"team.pick_member@1","key":"team.pick_member","version":1,"kind":"action","title":"Pick a teammate","description":"Picks one workspace member, in turn, by lightest recent load or at random, and returns that member's id, name and email. Use it to give an inbound lead an owner before a notification or an approval. Candidates are the listed members plus the members holding one of the listed roles (admin, editor, member, client, network_member); with neither, every member who can edit workflows. At most 50 candidates, lowest ids first. The rotation is kept per workflow and key, so steps with different keys rotate on their own. A retried step run returns the member it picked before. Fails with a setup error when there is no member to pick. A test run picks without recording. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"strategy":{"description":"How to pick: round_robin takes the member picked longest ago, least_loaded the member with the fewest picks in the last 7 days, random any of them.","type":"string","default":"round_robin","enum":["round_robin","least_loaded","random"]},"members":{"description":"Member ids to pick from, written as literal ids. Only active members of this workspace count.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"roles":{"description":"Also pick from members holding one of these workspace roles: admin, editor, member, client or network_member.","type":["array","null"],"items":{"type":"string"},"default":null},"key":{"description":"Names the rotation inside this workflow. Steps with the same key share one rotation; leave it empty for the workflow's default rotation.","type":"string","default":""}}}},{"type":"trigger.account_changed@1","key":"trigger.account_changed","version":1,"kind":"trigger","title":"Account changed","description":"Starts a run when an account in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (name, domain, industry, employeeCount, tier, type, customer, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. A domain added to or removed from the account later reports domain, with the domain it added (to) or removed (from). Stage moves are trigger.account_stage@1, and changes in a connected CRM are trigger.crm_record_changed@1. The run is about the account (record account). {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.account_hot@1","key":"trigger.account_hot","version":1,"kind":"trigger","title":"Account turned hot","description":"Starts a run when an account turns hot: a new signal lifts its signal score from below the workspace's Tier 1 floor (Knowledge > Tiers, 65 by default) to at or above it. It fires once per climb: the score has to fall below the floor before it fires again, and editing the signal points or merging accounts never fires it. It needs the workflows_account_hot feature, which is off until it is turned on for the workspace: until then a workflow with it saves as a draft but cannot be published. The run is about that account (record account). {{trigger.accountId}} is the account, {{trigger.score}} its signal score and {{trigger.reason}} why now (the account's why-now, else its latest signal). Set minScore to react only to scores at or above it, and oncePerRecordDays to start at most one run per account in that many days. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_account_hot"}],"inputSchema":{"type":"object","properties":{"minScore":{"description":"Only accounts whose score is at least this. Leave out for every account that reaches Tier 1.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"oncePerRecordDays":{"description":"Start at most one run per account every this many days. Leave out to run each time the account reaches Tier 1 again.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.account_stage@1","key":"trigger.account_stage","version":1,"kind":"trigger","title":"Account stage changed","description":"Starts a run when an account moves into one of the chosen stages (new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact), whoever moved it: a person, an agent, the API, a workflow or Ken (lost follows the deal, onboarding a won deal). Set from to react only to moves out of one stage. The run is about that account (record account). {{trigger.accountId}} is the account, {{trigger.stage}} the new stage, {{trigger.previousStage}} the old one and {{trigger.actorKind}} who moved it. A workflow that sets the stage itself can start its own trigger again, so pick stages that do not loop. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stages":{"description":"Stages that start a run when an account moves into them: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact. At least one.","type":"array","items":{"type":"string"}},"from":{"description":"Only moves out of this stage. Leave out for a move from any stage.","type":["string","null"],"default":null}},"required":["stages"]}},{"type":"trigger.apollo@1","key":"trigger.apollo","version":1,"kind":"trigger","title":"Apollo list","description":"Runs the contacts of one of the workspace's Apollo lists through the workflow, on the workspace's own Apollo key (Settings > Integrations; Kenso has no Apollo key). Name the list in `listId` (GET /v1/integrations/apollo/lists lists the workspace's contacts lists). A Bulk import source: its `schedule` is {\"every\": \"once\"}, day or week. Each read pages the list from the contact created last in Apollo, up to Apollo's 50,000: on a bigger list, an older contact added to the list lately can sort past that cap and is not read. Each contact is matched in the workspace's people by email or LinkedIn URL, or added (source workflow, on no account; its name, title and phone kept, with the custom fields company_domain and company_name filled where blank), and starts one run. A contact with no name, or with neither an email Apollo has unlocked nor a LinkedIn URL, is skipped. A person runs at most once from the workflow's Apollo sources, so a daily or weekly read runs only the contacts added to the list since, and publishing again does not run the same contacts again. Reading the list costs no Kenso credits and no Apollo credits (Apollo's rate limits apply to the key); the run's steps charge as usual. Without a usable Apollo key, when Apollo refuses the key (401 or 403), or when the workspace's Apollo account no longer has the list, the trigger fails. Save a master Apollo key: the same key runs Kenso's Apollo email finder (people/match), so a key limited to the list endpoints stops working for both. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources and Accounts features; publishing it needs Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"listId":{"description":"The Apollo contacts list to read, by its Apollo id (GET /v1/integrations/apollo/lists), at most 64 characters.","type":["string","null"],"default":null}}}},{"type":"trigger.campaign_leads@1","key":"trigger.campaign_leads","version":1,"kind":"trigger","title":"Leads added to this campaign","description":"Collects the leads added to a campaign, usually every hour, and runs them through the workflow as one batch: the Leads tab, the API, Ask Ken, imports, any way a lead joins the campaign. The campaign is `campaignId` and the cadence the source's `schedule`. The first read, when the workflow is published, starts from the leads the campaign has then, which are not backfilled; each later read takes only the leads added since the last one, and republishing carries on where the last version stopped. A lead runs once: a lead this workflow already ran on, or one the workflow's own steps added to a campaign (add to campaign, place delivery, campaign refill), starts no run. A Bulk import campaign workflow always has one for its own campaign, every hour. A Bulk import source: it needs a repeating `schedule` (hour, day or week; once would never collect a lead). The run is about that lead: {{lead.*}} holds its fields, {{trigger.recordId}} is its id and {{trigger.scheduledFor}} the slot that read it. Free. Needs the workflow sources feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign whose new leads the source collects. In a campaign workflow, Kenso sets it to the workflow's own campaign.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["campaignId"]}},{"type":"trigger.champion_moved@1","key":"trigger.champion_moved","version":1,"kind":"trigger","title":"Champion changed jobs","description":"Starts a run when a past champion starts at a new company (Kenso Search re-check). Ken adds the company to Accounts, maps the champion on it and stores the signal; reaching out is up to the workflow. The workspace's \"Champion changed jobs\" workflow plans the LinkedIn note with reachableOnly true, so a second workflow that messages the champion sends a second note. A send step acts on the new company's account (accountId), so to \"record\" reaches the champion there; account fields and other account steps still read the person's first account. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"leadersOnly":{"description":"true: only when the new title is a revenue or finance leader role (VP Sales, VP RevOps, CRO, CFO). Leave out for every move.","type":["boolean","null"],"default":null},"reachableOnly":{"description":"true: only moves Ken may reach out on (reachable true). Leave out for every move, for steps that do not contact the champion.","type":["boolean","null"],"default":null}}}},{"type":"trigger.crm_list@1","key":"trigger.crm_list","version":1,"kind":"trigger","title":"New lead from a CRM list","description":"Starts one run for every contact the CRM list import adds to a Kenso campaign. Pick a CRM list (`listId`: a HubSpot list, a Salesforce Campaign) and the campaign (`campaignId`), and the list is imported into the campaign every 15 minutes. Leads already in the campaign when the workflow is published are not backfilled, but publishing starts the list import: every current list member who is not in the campaign yet is imported by the next import and starts a run, so publishing on a large list starts many runs. Every lead added to the campaign while the list source is active starts a run, whichever way it got there. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.listId}} and {{trigger.createdAt}} describe it. Each lead starts the workflow once. Needs a connected CRM and the ingestion feature. Turn on list sync in CRM settings. Starting runs costs nothing, but each new contact the list import adds reserves lead credits from the plan, like any CRM list import. Turning the workflow off does not remove the list source: the import keeps adding members until the list source is removed in CRM settings. While the workflow is published the list source is kept there.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"app","key":"crm"}],"inputSchema":{"type":"object","properties":{"listId":{"description":"The CRM list's external id (a HubSpot list id, a Salesforce Campaign id). Pick it from GET /v1/crm-connections/{connectionId}/lists.","type":"string"},"campaignId":{"description":"The Kenso campaign the list members are imported into.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"keepInSync":{"description":"Re-read the list after its last page, so members added later also come in. False imports the list once.","type":"boolean","default":true}},"required":["listId","campaignId"]}},{"type":"trigger.crm_record_changed@1","key":"trigger.crm_record_changed","version":1,"kind":"trigger","title":"CRM record changed","description":"Starts a run when a company, contact or deal in the workspace's connected CRM is created, changed or deleted. Set objectType to company, contact or deal. Set fields to CRM api names as they appear in the CRM (industry, lifecyclestage in HubSpot; Industry, StageName in Salesforce) to start only when one of them changed; leave it empty for any change. Kenso reads the standard fields it syncs, the CRM's custom fields and any field mapped into Kenso under Settings > Integrations: a field outside those never counts as changed, and mapping a field into Kenso or unmapping it is not a change. events picks created, changed and deleted (default created and changed); a created or deleted record matches whatever fields lists. A company Kenso first sees in a list it imports nightly is created at its first full read. Kenso's own writes to the CRM and the CRM's modified dates are not changes. With the CRM mirror on, a record outside its import filter starts no run: a company or contact the filter leaves out, whether a narrowed filter stopped syncing it or Kenso never imported it, and a deal whose company the filter leaves out. Nor does a record Kenso has not imported while the filter's CRM lists cannot be read. The run has no record (record none): {{trigger.accountId}} (a company) and {{trigger.personId}} (a contact) are set when Kenso has the CRM record linked to an account or person; a deal carries the account of its first associated company and the person of its first associated contact that Kenso has linked. {{trigger.changedFields}} names the fields that moved, {{trigger.fields}} holds the record's values after the change and, on deleted, {{trigger.mergedIntoExternalId}} names the record a merge kept. HubSpot changes arrive by webhook, usually within a minute; Salesforce and the other polled CRMs are read every 5 minutes. Needs a connected CRM. Field names match ignoring case. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"The CRM object to watch: company, contact or deal.","type":"string"},"fields":{"description":"Only changes to one of these CRM fields, by api name as it appears in the CRM (HubSpot industry, lifecyclestage; Salesforce Industry, StageName). Kenso must read the field: a standard field it syncs, a custom field, or a field mapped into Kenso. Leave out or empty for any change. Created and deleted records match whatever this lists.","type":["array","null"],"items":{"type":"string"},"default":null},"events":{"description":"Which events start a run: created, changed, deleted. Leave out for created and changed.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["objectType"]}},{"type":"trigger.csv@1","key":"trigger.csv","version":1,"kind":"trigger","title":"CSV upload","description":"Runs each row of an uploaded CSV through the workflow once, as a person. Upload the file into a people list (POST /v1/saved-lists with kind people, then POST /v1/saved-lists/{savedListId}/uploads) and name it in `savedListId`. A Bulk import source that reads once: its `schedule` must be {\"every\": \"once\"}. It reads the list when the workflow is published, after the upload has been processed. Each row is matched in the workspace's people by email, LinkedIn URL or Kenso person id, or added (source workflow, on no account; its name, title, phone and custom columns kept, with the custom fields company_domain and company_name filled where blank), and starts one run. A row with none of the three is skipped, as are rows that opted out. A person runs at most once from the workflow's CSV sources, so publishing the workflow again does not run the same rows again. Reading the list and adding people cost no credits; the run's steps charge as usual. A company list, a deleted list, another workspace's list or a private list of someone other than the person who published the workflow fails the trigger. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} when the list was read. Needs the workflow sources and Accounts features; publishing it needs Search view and Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"savedListId":{"description":"The people list the CSV was uploaded into (POST /v1/saved-lists with kind people, then POST /v1/saved-lists/{savedListId}/uploads): a people list of this workspace, by its id.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["savedListId"]}},{"type":"trigger.deal_changed@1","key":"trigger.deal_changed","version":1,"kind":"trigger","title":"Deal changed","description":"Starts a run when a deal (opportunity) in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (name, amount, closeDate, nextStep, dealType, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. Stage moves, won and lost included, are trigger.opportunity_stage@1, and changes in a connected CRM are trigger.crm_record_changed@1. The run is about the deal's account (record account), or has no record when the deal has none; {{trigger.opportunityId}} and {{trigger.recordId}} are the deal, and oncePerRecordDays counts per deal. {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.engagement@1","key":"trigger.engagement","version":1,"kind":"trigger","title":"Lead engaged","description":"Starts a run when a lead in a campaign opens an email, clicks a tracked link, accepts a LinkedIn invite or unsubscribes. Set event to one of email_opened, link_clicked, linkedin_invite_accepted or unsubscribed, and campaignId to one campaign (leave it out for every campaign). minCount (1 to 20, default 1) waits until the lead has done it that many times in one campaign: only opens and clicks repeat, machine opens and bot clicks never count, and the tally resets 30 days after the lead's latest one. The run is about the lead (record lead), and a lead starts at most one run per event every oncePerRecordDays (1 to 365, default 7). {{trigger.event}} is what happened, {{trigger.count}} how many times so far, {{trigger.contactId}} and {{trigger.campaignId}} the lead and campaign, {{trigger.occurredAt}} when, and {{trigger.url}} the clicked link. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"event":{"description":"What the lead did: email_opened, link_clicked, linkedin_invite_accepted or unsubscribed.","type":"string","enum":["email_opened","link_clicked","linkedin_invite_accepted","unsubscribed"]},"campaignId":{"description":"Only this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"minCount":{"description":"Start once the lead has done it this many times in one campaign: 1 to 20 (default 1). Only email_opened and link_clicked repeat; the other two take 1.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":1},"oncePerRecordDays":{"description":"Start at most one run per lead and event every this many days: 1 to 365 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7}},"required":["event"]}},{"type":"trigger.event_attendees@1","key":"trigger.event_attendees","version":1,"kind":"trigger","title":"Event attendees","description":"Reads the attendee list of one of the workspace's outbound events on a schedule: once, every day or every week. The event is `eventId` (from GET /v1/outbound-events) and the cadence the source's `schedule`. `roles` picks which rows to read (attendee, exhibitor, speaker, sponsor; all four by default). Each read takes the rows added since the last one, in the order they were added, and each person starts one run, once for the workflow: a person listed twice, or read again after a publish, runs once. A row with an email, a LinkedIn URL or a Kenso Search id is matched in the workspace's people or added (source workflow, on no account, with the custom fields company_domain and company_name filled where blank). A row with only a name and a company domain is matched by name on the workspace's account for that domain, or added to it. With no account for the domain yet the row waits, and runs once that account exists: every read checks the waiting rows again, and a source that reads once checks them again every day, reading nothing added to the event after its read, until none wait (at most 2,000 rows wait; past that a row is skipped). Rows wait until 30 days after the event ends; a read after that skips them. A row without a person's name but with a company domain (a company-only sponsor or exhibitor) lands as an account of the workspace where company landing is on (off by default, and then the row is skipped): the account for that domain, or a new one named from the company name (source outbound_event), unless the workspace turned off the accounts Kenso creates or a user removed that domain's account. It starts no run, and the people waiting on that company run in the same read. A row with neither a person's name nor a company domain, or with only a name, is skipped, and is not read again until the workflow is published again. Reading the list and adding people and accounts cost no credits; a new account is scored and scanned like the workspace's other accounts, and the run's steps charge as usual. A deleted event or another workspace's fails the trigger. A Bulk import source: it needs a `schedule`. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources, Accounts and event outbound features; publishing it needs Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"eventId":{"description":"The outbound event whose attendee list to read: an event of this workspace, from GET /v1/outbound-events.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"roles":{"description":"The roles to read: attendee, exhibitor, speaker and sponsor, at least one. Default all four.","type":["array","null"],"items":{"type":"string","pattern":"^(attendee|exhibitor|speaker|sponsor)$"},"default":null,"minItems":1}},"required":["eventId"]}},{"type":"trigger.event_date@1","key":"trigger.event_date","version":1,"kind":"trigger","title":"On an event date","description":"Starts one run for each target account attending an event (Accounts > Events), a number of days before or after the event starts or ends, at 09:00 in the event's timezone (UTC when it has none). References: {{trigger.event.name}}, {{trigger.event.startsOn}}, {{trigger.event.endsOn}}, {{trigger.event.city}}, {{trigger.event.url}}, {{trigger.account.name}}, {{trigger.attendees}} (isLikely marks a row not confirmed for this edition: a person found at an attending company, or one on last year's lists, which also sets lastYear), {{trigger.scheduledFor}}.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"eventId":{"description":"The event id from Accounts > Events. Omit to run for every event in the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"anchor":{"description":"start or end: the event date the offset counts from.","type":"string","default":"start"},"offsetDays":{"description":"Days after the anchor date, negative for before. -60 to 60.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.form@1","key":"trigger.form","version":1,"kind":"trigger","title":"Form submitted","description":"Starts a run each time someone sends this workflow's form, a page Kenso hosts (publishing creates it; its link and an iframe embed code are returned as form.url and form.embedHtml when the workflow is read). Give a `title`, an optional `intro` and 1 to 20 `fields` (name, label, type: text, long_text, email, phone, url, number, date, select with options, or checkbox; required; placeholder). {{trigger.fields.<name>}} holds each typed value, plus submittedAt, sourceId and page (referrer and utm source, medium and campaign). Map fields to the person with `mapsTo` (email, firstName, lastName, fullName, company, companyDomain, title, phone, linkedinUrl): `createPerson` (default true when a field maps to email or linkedinUrl; needs lead_intake) creates or matches that person first, runs about them and adds personId, accountId and created. `dedupField` with `dedupWindowDays` starts one run per value. `redirectUrl` sends the browser to your own https page after a submission, else the page shows `successMessage`. A field asking for a password, card or ID number is refused. Never put the form's link in an email, campaign or reply step: a Kenso address must stay out of outreach (form_link_in_send). For cold email, put a form on a Studio page and start from trigger.studio_form@1. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"},{"kind":"flag","key":"workflows_forms"}],"inputSchema":{"type":"object","properties":{"title":{"description":"The form's heading, 1 to 120 characters of plain text.","type":"string","minLength":1,"maxLength":120},"fields":{"description":"The form's fields, 1 to 20, in page order.","type":"array","items":{"type":"object","properties":{"name":{"description":"The key its value has in trigger.fields: lower-case letters, digits and _, starting with a letter, up to 40 characters, unique in the form.","type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"description":"What the page shows above the field, 1 to 120 characters.","type":"string","minLength":1,"maxLength":120},"type":{"description":"text, long_text, email, phone, url, number, date, select or checkbox.","type":"string","enum":["text","long_text","email","phone","url","number","date","select","checkbox"]},"required":{"description":"Whether the form refuses a submission without it.","type":"boolean","default":false},"options":{"description":"A select's choices: 2 to 50, each up to 80 characters. Only a select takes them.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":50},"placeholder":{"description":"Grey hint text inside the empty field, up to 80 characters.","type":["string","null"],"default":null,"maxLength":80},"mapsTo":{"description":"The person field it fills when createPerson is on: email, firstName, lastName, fullName, company, companyDomain, title, phone or linkedinUrl.","type":["string","null"],"default":null,"enum":["email","firstName","lastName","fullName","company","companyDomain","title","phone","linkedinUrl",null]}},"required":["name","label","type"]},"minItems":1,"maxItems":20},"intro":{"description":"Plain text under the heading, up to 1,000 characters.","type":["string","null"],"default":null,"maxLength":1000},"submitLabel":{"description":"The button's words, up to 40 characters.","type":"string","default":"Send","maxLength":40},"successMessage":{"description":"What the page says after a submission, up to 500 characters.","type":"string","default":"Thanks. We got it.","maxLength":500},"redirectUrl":{"description":"Where the browser goes after a submission instead: an absolute https address on your own site (not a Kenso one).","type":["string","null"],"default":null},"createPerson":{"description":"Create or match the person from the fields mapped with mapsTo before each run, and run about them. Defaults to true when a field maps to email or linkedinUrl. Needs lead_intake.","type":["boolean","null"],"default":null},"dedupField":{"description":"The name of a field whose value starts one run per value within dedupWindowDays.","type":["string","null"],"default":null},"dedupWindowDays":{"description":"How many days (1 to 365) a dedupField value blocks another run. Without it a value blocks forever.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":365},"createsPerson":{"type":"boolean"}},"required":["title","fields"]}},{"type":"trigger.hot_page@1","key":"trigger.hot_page","version":1,"kind":"trigger","title":"Hot page","description":"Starts a run when a lead comes back to a page Kenso tracks, such as a Studio page opened again on another day. The Studio page counts when the lead opens it on two days within studioRevisitDays (default 7). linkUrlContains (default [\"/pricing\"]) and sitePages (default high_intent) set the tracked link click and site page sources, read once Kenso ships them. The run is about the lead (record lead). Leads who replied since the last campaign email (skipIfReplied), leads Kenso emailed or touched within quietDays (default 2), and leads whose account sits below maxTier (default 3; no tier passes) are skipped, and a lead starts at most one run every oncePerRecordDays (default 7). {{trigger.why}} is Kenso's line about the visit (Opened \"Route-cost teardown\" 3 times since Tue), never page text, and the touch's Why now; {{trigger.lastMessageId}} is the last campaign email's Message-ID, to reply in its thread; {{trigger.label}}, {{trigger.views}}, {{trigger.source}} and {{trigger.accountId}} the page, its views, where it came from and the account. studioRevisitDays 0, linkUrlContains [] and sitePages off turn a source off. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"website","systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object","properties":{"studioRevisitDays":{"description":"Start when the lead opens the same Studio page on two days within this many days: 0 to 30 (default 7). 0 turns Studio pages off.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7},"linkUrlContains":{"description":"Start when the lead clicks a tracked campaign link whose URL holds one of these (any case): up to 10, 1 to 200 characters each. Default [\"/pricing\"]; [] turns link clicks off.","type":["array","null"],"items":{"type":"string"},"default":null},"sitePages":{"description":"Site pages that start a run: high_intent (pages tagged in Settings > Website Tracking; default) or off.","type":"string","default":"high_intent","enum":["high_intent","off"]},"skipIfReplied":{"description":"Skip a lead who replied after the last campaign email they got; with no campaign email, any reply counts (default true). Automated and out-of-office replies never count.","type":"boolean","default":true},"quietDays":{"description":"Skip a lead Kenso emailed or touched within this many days: 0 to 30 (default 2). 0 never skips.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":2},"maxTier":{"description":"Skip a lead whose account sits below this tier: 1 to 10 (default 3). A lead with no tier is not skipped.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3},"oncePerRecordDays":{"description":"Start at most one run per lead every this many days: 1 to 365 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7}}}},{"type":"trigger.job_posts@1","key":"trigger.job_posts","version":1,"kind":"trigger","title":"Job posts","description":"Reads the Kenso job postings index on a schedule and starts one run for each company with a matching open job post. `filters` are the jobFilters of POST /v1/job-post-searches/companies (titles include and exclude, location countries, regions, states and cities, seniority, hasRemote, sources, includeAgencies, companies, tags, languages, salary); that route's hiringSet.total is the number of companies before you publish. The source sets the posting window and reads open posts only, so postedWithin, postedAfter, postedBefore and status are refused in filters. `backfillDays` decides the first check: 0 (the default) starts with the posts from the moment the workflow is published, 1 to 30 also reads that many days before it. Later checks read what was posted since, and look back 7 days for posts the index found late. Each company is keyed by its Kenso Search company id: the one the index matched, once its Kenso Search record proves to be that company, else the one the source finds in Kenso Search by the company's domain (a unique match only; a name alone never matches, since another company can share it). It runs once per workflow, so publishing again or a later check never runs it twice, and a second Kenso Search company on the domain of one that already ran is skipped with it; with `rerunAfterDays` it runs again once that many days have passed since its last run, when it still has a matching post. A company Kenso Search has no unique match for, one whose id is another company's record and that resolves to none, or one without a website domain, is skipped and counted. With `includeUnmatched: true` a company Kenso Search has no company for runs too: it is keyed by the index's company id (once per workflow, and never again once it is matched), lands on its best-known domain (one without a known domain is still skipped and counted), and its run has {{trigger.matchStatus}} unmatched, {{trigger.kenSearchCompanyId}} null, {{trigger.jobsCompanyId}} and {{trigger.companyDomainSource}}; enrich it with a step such as data.find_people@1. Each company is matched in Accounts by its domain, or added (source workflow, no owner, without research), and its run is about that account: {{account.*}} holds its fields, {{trigger.posts}} its matching posts newest first (at most 10: id, title, location, country, workplaceType, salaryMinUsd, salaryMaxUsd, applicationUrl, postedAt), {{trigger.postCount}} how many the check read, and {{trigger.kenSearchCompanyId}}, {{trigger.companyName}} and {{trigger.companyDomain}} the company. The checks of one schedule period (from one day's or week's check to the next) start runs for at most `limit` companies together (100 by default, at most 1000), newest posts first, so publishing again checks at once but takes only what the period's earlier checks left; the rest run on the next check. Company size is not a job postings filter: gate size and fit with ai.qualify@1 or logic.filter@1. Reading the index and adding accounts cost no credits; the run's steps charge as usual. A Bulk import source: it needs a `schedule` of once (with `backfillDays` 1 to 30), day (the usual cadence) or week, not hour. Filters the index refuses fail the trigger. Needs the workflow sources and Accounts features; publishing it needs Search view and Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The job postings filters, the jobFilters of POST /v1/job-post-searches/companies: titles {include, exclude}, location {countries, regions, states, cities}, seniority, hasRemote, sources, includeAgencies, companies, tags, languages and salary. The source sets the posting window and reads open posts only, so postedWithin, postedAfter, postedBefore and status are refused here: set backfillDays instead.","type":["object","null"],"default":null},"backfillDays":{"description":"How far back the first check reads: 0 (the default) starts with the posts from the moment the workflow is published, 1 to 30 also reads the posts of that many days before it. A once schedule needs 1 to 30: its one check, at publish, would find no post from then on.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0},"limit":{"description":"Most companies the source starts runs for per schedule period (from one day's or week's check to the next), 1 to 1000. Default 100. A publish checks at once but takes only what the period's earlier checks left. Companies past it run on the next check.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"rerunAfterDays":{"description":"Run a company again once this many days (1 to 365) have passed since its last run, when it still has a matching post. Leave out (the default) to run each company once per workflow.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"includeUnmatched":{"description":"Also run the hiring companies Kenso Search has no company for (DEV-7789), keyed by the job postings index's company id: each becomes an account named after the company, on its best-known domain, so a step such as data.find_people@1 can find its people another way. One without a known domain is skipped and counted. Off by default: those companies are skipped and counted.","type":"boolean","default":false}}}},{"type":"trigger.ken_search@1","key":"trigger.ken_search","version":1,"kind":"trigger","title":"Search","description":"Reads a Kenso Search people search on a schedule, from filters you set or from a saved search. Set exactly one of `filters` (the searchFilters of POST /v1/search/imports) or `savedSearchId`; the cadence is the source's `schedule`. Each read starts from the top of the search and takes up to `limit` people (100 by default, at most 1000): each person is matched in the workspace's people by LinkedIn URL or Kenso Search id, or added (source workflow, on no account, with the custom fields company_domain and company_name filled where blank), and starts one run. With `skipKnown` (true by default) people the workspace already had are skipped and do not count toward the limit, so a weekly read finds new people only; with it false every read runs the same people again. Reading the search and adding people cost no credits; the run's steps charge as usual. A saved search is read as the person who published the workflow: if they left the workspace or can no longer see it, the trigger fails, as it does when Kenso Search rejects the filters. A Bulk import source: it needs a `schedule`. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources and Accounts features; publishing it needs Search view, Accounts edit and the import permission.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The Kenso Search people filters to read: the searchFilters of POST /v1/search/imports, the body POST /v1/search/people takes (page, pageSize and searchAfter are ignored). Set this or savedSearchId.","type":["object","null"],"default":null},"savedSearchId":{"description":"A saved people search to read instead (GET /v1/search/saved), read as the person who published the workflow. Set this or filters.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"limit":{"description":"Most people one read starts runs for, 1 to 1000. Default 100.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"skipKnown":{"description":"Skip people already in the workspace's people, so a repeating read starts runs only for people new to the workspace (default true). False starts a run for every person found on every read.","type":"boolean","default":true}}}},{"type":"trigger.lead_changed@1","key":"trigger.lead_changed","version":1,"kind":"trigger","title":"Lead changed","description":"Starts a run when a member, an agent or the API edits a lead in Kenso (in the app, through the contacts API or with the contacts tool). Imports, bulk edits, enrichment, sends and workflow writes are not edits, and a new lead is trigger.new_leads@1, so on takes updated only. Set fields (firstName, lastName, email, title, linkedinUrl, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"title\": {\"to\": \"CEO\"}}, with to and from each a value or a list. oncePerRecordDays (0 to 365) starts at most one run per lead in that many days. The run is about the lead (record lead). {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values, {{trigger.actor.kind}} and {{trigger.actor.memberId}} say who edited it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.linkedin_connection_accounts@1","key":"trigger.linkedin_connection_accounts","version":1,"kind":"trigger","title":"LinkedIn connection accounts","description":"Runs the accounts the LinkedIn connections enrich job picks for a seat: the companies of its tier 1 buyers and the ICP-fit companies where a connection holds an advisor, board or investor seat (its warm paths). The job starts one run per account once the seat's connections are sorted; the source reads nothing on its own and takes no schedule. `linkedInAccountId` limits it to one seat's job. The run is about the account: {{account.*}} holds its fields, {{trigger.level}} is emails or full and {{trigger.reason}} is tier1 or warm_path. Free; the steps charge as usual. Needs the workflow sources and LinkedIn connections enrich features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"linkedInAccountId":{"description":"Only the accounts the enrich job of this LinkedIn seat (linkedInAccountId of GET /v1/linkedin-network) starts. Leave it out for any seat's job.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.linkedin_connections@1","key":"trigger.linkedin_connections","version":1,"kind":"trigger","title":"LinkedIn connections","description":"Collects the connections a LinkedIn seat imported (its connections matched to a person) and runs each through the workflow as a person. They are the imported rows of GET /v1/linkedin-connections. `linkedInAccountId` is the seat. `level` is emails or full and `stage` is sort or work; the run carries both as {{trigger.level}} and {{trigger.stage}}, with {{trigger.connectionId}} (the connection row) and {{trigger.linkedInAccountId}}, so one template sorts on one source and works the stored group on another. A Bulk import source: `schedule` once reads the seat's connections when the workflow is published; hour, day or week also reads the connections imported since the last read. A connection runs once per stage and level per workflow, a republish included. The run is about the connection's person: {{person.*}} holds their fields and {{trigger.recordId}} is the person id. Free; the steps charge as usual. Needs the workflow sources and LinkedIn connections enrich features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"linkedInAccountId":{"description":"The LinkedIn seat (linkedInAccountId of GET /v1/linkedin-network) whose imported connections the source reads. The connections enrich job sets it to the seat it enriches.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"level":{"description":"How far the enrich goes: emails (sort, then emails for buyers and partners) or full (also phones and research for tier 1 buyers). The default is emails.","type":"string","default":"emails"},"stage":{"description":"Which stage the runs are: sort (group each connection into buyer, partner or other) or work (find emails, phones and research by the stored group). The default is sort.","type":"string","default":"sort"}},"required":["linkedInAccountId"]}},{"type":"trigger.linkedin_post_engagement@1","key":"trigger.linkedin_post_engagement","version":1,"kind":"trigger","title":"LinkedIn post engagement","description":"Once a day, reads who reacted to, commented on or replied under the recent posts of your LinkedIn seats (and of up to 3 company pages), adds the new people to a campaign you pick as leads, and starts one run for each person the read places in the campaign, new or already a lead there. The campaign is `campaignId`. Set the seats (none reads every connected seat), the kinds (reactions, comments, replies or any mix; all three by default), optional comment keywords, how old a post may be (`postMaxAgeDays`, 14 by default, at most 30) and how many new people a day (`maxNewLeadsPerDay`, 100 by default, at most 500). People are added like a LinkedIn import: the campaign's dedupe and do-not-contact apply, your own seats are never added, and each new lead reserves lead credits from the plan. The first read runs a few minutes after publishing, and each read counts against the seats' daily LinkedIn read limits. A disconnected seat is skipped until it is reconnected; a seat that was removed, a deleted campaign or a trigger-mode campaign fails the trigger. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.kind}} (reaction, comment or reply), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}}, {{trigger.postUrl}}, {{trigger.commentText}} and {{trigger.linkedinAccountId}} describe it. Each lead starts the workflow once. Needs the LinkedIn signals feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The Kenso campaign the people are added to as leads. A regular campaign, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"linkedinAccountIds":{"description":"The LinkedIn seats whose posts are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"kinds":{"description":"Which engagements count: any of reaction, comment, reply (a reply to a comment on the post). All three by default.","type":["array","null"],"items":{"type":"string"},"default":null},"commentKeywords":{"description":"Only comments and replies that contain one of these words count (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every comment; reactions are never filtered. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"companyPageUrls":{"description":"Up to 3 LinkedIn company pages whose posts are read too, such as https://www.linkedin.com/company/acme.","type":["array","null"],"items":{"type":"string"},"default":null},"postMaxAgeDays":{"description":"Read posts from the last this many days. 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"maxNewLeadsPerDay":{"description":"The most new people added to the campaign each day. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["campaignId"]}},{"type":"trigger.linkedin_post_engagement@2","key":"trigger.linkedin_post_engagement","version":2,"kind":"trigger","title":"LinkedIn post engagement","description":"Once a day, reads who reacted to, commented on or replied under the recent posts of your LinkedIn seats, of up to 3 company pages, and of up to 10 pasted posts (anyone's), labels each comment's intent, and starts one run per person with their strongest engagement (keyword comment, then comment, then reply or author, then reaction). The run is about that person: {{person.*}} holds their fields; {{trigger.kind}} (reaction, comment or reply), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}}, {{trigger.postUrl}}, {{trigger.postText}}, {{trigger.ownPost}} (false for a pasted post by someone outside the workspace), {{trigger.commentText}}, {{trigger.isReply}}, {{trigger.keywordMatched}}, {{trigger.reactionType}}, {{trigger.intent}} (positive, requesting, question, neutral or negative; empty for a reaction) and {{trigger.intentReason}} describe the engagement. Branch on {{trigger.intent}} or {{trigger.keywordMatched}}, then add the person to a campaign with campaign.add_person@1, which writes linkedin_source, linkedin_headline, linkedin_comment and linkedin_post_text to the lead. Set the seats (none reads every connected seat), the kinds, optional reaction types, comment keywords, company pages and post URLs, how old a post may be (`postMaxAgeDays`, 14 by default, at most 30) and how many people a day (`maxRunsPerDay`, 100 by default, at most 500). Each person starts the workflow once. Each read counts against the seats' daily LinkedIn read limits. A disconnected seat is skipped until it is reconnected; a seat that was removed fails the trigger. Needs the LinkedIn signals feature. Instead of its own sources, a trigger can list `topics` (keywords) and `watchedProfileUrls` (people and company pages): their new posts are found once a day and each is read once, 24 to 72 hours after it is published, through a seat whose owner turned research reads on. That needs the linkedin_topic_signals feature too, and publish refuses it without. {{trigger.kind}} can then also be author (the person who wrote a post a topic found), {{trigger.sourceKind}} is topic or person (seat, page or post for your own sources) and {{trigger.topic}} is the keyword, or the watched person's or page's name; {{trigger.ownPost}} is false. `headlineKeywords` and `headlineExcludeKeywords` then filter people by their LinkedIn headline.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"linkedinAccountIds":{"description":"The LinkedIn seats whose own posts are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"companyPageUrls":{"description":"Up to 3 LinkedIn company pages whose posts are read too, such as https://www.linkedin.com/company/acme.","type":["array","null"],"items":{"type":"string"},"default":null},"postUrls":{"description":"Up to 10 LinkedIn post URLs to read, yours or anyone's, such as https://www.linkedin.com/posts/jane-doe_title-activity-7212345678901234567-AbCd. A post by someone outside the workspace is a third-party post: campaign.add_person@1 then withholds the comment and post text from the lead's variables.","type":["array","null"],"items":{"type":"string"},"default":null},"postReaderLinkedinAccountId":{"description":"The seat that reads the company pages and pasted posts. Left out, the connected seat with the most daily reads left is used.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"kinds":{"description":"Which engagements count: any of reaction, comment and reply (a reply to a comment on the post). All three by default. With topics or watched people, author (the person who wrote a post a topic found) counts too, and the default is comment and reply, plus author with topics.","type":["array","null"],"items":{"type":"string"},"default":null},"reactionTypes":{"description":"Only these reaction types count: any of like, celebrate, support, love, insightful, funny. Empty takes every reaction.","type":["array","null"],"items":{"type":"string"},"default":null},"commentKeywords":{"description":"Only comments and replies that contain one of these words count (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every comment; reactions are never filtered. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"postMaxAgeDays":{"description":"Read posts from the last this many days. 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"maxRunsPerDay":{"description":"The most new people a day the trigger starts runs for. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"topics":{"description":"Up to 5 keywords or phrases, of up to 100 characters each. New LinkedIn posts about them are found and their engagers read. A trigger with topics or watched people reads no seats, company pages or pasted posts. Needs the linkedin_topic_signals feature: publish refuses topics in a workspace without it. A workspace listens to at most 10 topics across its triggers.","type":["array","null"],"items":{"type":"string"},"default":null},"watchedProfileUrls":{"description":"Up to 10 LinkedIn profile or company page URLs, such as https://www.linkedin.com/in/jane-doe or https://www.linkedin.com/company/acme, whose new posts are found and their engagers read. Publish refuses watched profiles in a workspace that lacks the linkedin_topic_signals feature. A workspace watches at most 20 across its triggers.","type":["array","null"],"items":{"type":"string"},"default":null},"headlineKeywords":{"description":"With topics or watched people only, so it takes the linkedin_topic_signals feature, without which publish refuses the trigger: a person whose LinkedIn headline is known must match one of these words (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every headline; a person without a headline always passes. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"headlineExcludeKeywords":{"description":"With topics or watched people only: a person whose headline matches one of these words is left out. At most 20, of up to 100 characters each. Part of the linkedin_topic_signals feature, and publish refuses it where that feature is off.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.linkedin_profile_viewers@1","key":"trigger.linkedin_profile_viewers","version":1,"kind":"trigger","title":"LinkedIn profile viewers","description":"Once a day, reads who viewed the LinkedIn profiles of your Premium seats in the last 14 days, adds the new people to a campaign you pick as leads, and starts one run for each person the read places in the campaign, new or already a lead there. The campaign is `campaignId`. Set the seats (none reads every connected Premium seat; LinkedIn shows profile viewers to Premium accounts only) and how many new people a day (`maxNewLeadsPerDay`, 100 by default, at most 500). Viewers in private mode are not added: LinkedIn does not name them. People are added like a LinkedIn import: the campaign's dedupe and do-not-contact apply, your own seats are never added, and each new lead reserves lead credits from the plan. The first read runs a few minutes after publishing, and each read counts against the seats' daily LinkedIn read limits. A disconnected seat or one without Premium is skipped until it recovers; a seat that was removed, a deleted campaign or a trigger-mode campaign fails the trigger. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.kind}} (profile_view), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}} and {{trigger.linkedinAccountId}} (the seat they viewed) describe it. Each lead starts the workflow once. Needs the LinkedIn signals feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The Kenso campaign the people are added to as leads. A regular campaign, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"linkedinAccountIds":{"description":"The LinkedIn Premium seats whose profile viewers are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected Premium seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"maxNewLeadsPerDay":{"description":"The most new people added to the campaign each day. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["campaignId"]}},{"type":"trigger.linkedin_request_accepted@1","key":"trigger.linkedin_request_accepted","version":1,"kind":"trigger","title":"LinkedIn connection request accepted","description":"Starts a run when Ken accepts a LinkedIn connection request, after a person approved it or by itself on an autonomous seat. Set linkedinAccountId to watch one seat and decision to accept_as_lead or accept_only: accept_only means Ken did nothing else with the person. Ken adds accept_as_lead people to Accounts or the seat's campaign by itself, so use this for extra steps such as a Slack note or research, not a second message. The run has no record (record none): {{trigger.personId}}, {{trigger.accountId}}, {{trigger.contactId}}, {{trigger.campaignId}} and {{trigger.touchId}} are set when the hand-off created them. Needs the LinkedIn inbound requests feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_inbound"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"Only requests accepted on this LinkedIn seat (the LinkedIn account id). Leave out for every seat.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"decision":{"description":"Only this decision: accept_as_lead (Ken also adds the person to Accounts or the seat's campaign) or accept_only (Ken only accepted). Leave out for both.","type":["string","null"],"default":null}}}},{"type":"trigger.linkedin_request_received@1","key":"trigger.linkedin_request_received","version":1,"kind":"trigger","title":"LinkedIn connection request received","description":"Starts a run when Ken triages a LinkedIn connection request that is not spam and it is a strong fit or unclear, for example to post it to Slack. Set linkedinAccountId to watch one seat and lane to strong or unclear to watch one lane. Ken has not accepted the request yet and a workflow cannot accept or decline it. The run has no record (record none): {{trigger.requestId}}, {{trigger.fullName}}, {{trigger.headline}}, {{trigger.note}}, {{trigger.linkedinUrl}}, {{trigger.icpScore}} and {{trigger.icpReasons}} describe the person. Needs the LinkedIn inbound requests feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_inbound"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"Only requests sent to this LinkedIn seat (the LinkedIn account id). Leave out for every seat.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"lane":{"description":"Only this lane: strong (a fit at or above the seat's threshold) or unclear (waiting for the seat owner). Leave out for both.","type":["string","null"],"default":null}}}},{"type":"trigger.mailbox_label@1","key":"trigger.mailbox_label","version":1,"kind":"trigger","title":"Mailbox label","description":"Starts a run for each new message that gets a chosen Gmail label in a connected Google inbox, whether the label is on it when it arrives or added later (by a Gmail filter, Superhuman's AI labels or by hand). Set inboxId (a Google inbox connected in Kenso) and label (the name as Gmail shows it, nested labels joined with slashes, e.g. [Superhuman]/AI/Pitch, or its id). Only the inbox's owner can publish it. Nothing that was in the label before the workflow went live starts a run, nor mail that arrived more than a day before it was published (a filter applied to old conversations), and a message starts at most one run. Auto-replies and delivery reports start nothing; a reply to mail sent through Kenso stays a reply in To Reply. Other messages are stored as Kenso messages (in the Unibox with the Workflow label tag) and never count as a campaign or account reply. excludeFromDomains skips senders of those domains. createPerson (default true) creates or updates the sender as a person on their company's account first and runs about that person (needs lead_intake); false runs about no record. {{trigger.messageId}} (msg_...) and {{trigger.threadId}} (thr_...) name the message, so send.email can reply in its thread; {{trigger.from}}, {{trigger.fromName}}, {{trigger.fromDomain}}, {{trigger.subject}}, {{trigger.text}} (the plain body, up to 10,000 characters), {{trigger.receivedAt}}, {{trigger.labels}}, {{trigger.personId}} and {{trigger.accountId}}. Gmail only for now; Microsoft and IMAP inboxes come later. Checked about once a minute. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"mailbox_label_trigger"}],"inputSchema":{"type":"object","properties":{"inboxId":{"description":"Id of the connected Gmail inbox to watch (an inbox connected with Google in Kenso). Only the inbox's owner can publish the trigger.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0},"label":{"description":"The Gmail label to watch, one of your own (a Gmail system label such as INBOX or UNREAD is refused): its name as Gmail shows it, nested labels joined with slashes (e.g. [Superhuman]/AI/Pitch), or its id (Label_11). Publish resolves it to the label's id, so renaming the label in Gmail keeps the trigger working.","type":["string","null"],"default":null},"excludeFromDomains":{"description":"Sender domains to skip, e.g. [\"ken.so\"]. A subdomain of a listed domain is skipped too. Up to 50.","type":["array","null"],"items":{"type":"string"},"default":null},"createPerson":{"description":"Create or update the sender as a person on their company's account (lead intake, as the webhook trigger does) before each run and run about that person. Default true. Needs lead_intake. False runs about no record, and personId and accountId are null.","type":["boolean","null"],"default":null}}}},{"type":"trigger.manual@1","key":"trigger.manual","version":1,"kind":"trigger","title":"Run on records","description":"Starts one run per record someone picks: a person in the app, an agent or the API selects accounts, people or leads and runs the workflow on them (up to 1,000 per call). Use it for one-off enrichment, cleanup or outreach on a hand-picked list. `recordType` limits what it may run on (account, person, lead or place (a Google Maps place, while the search_places feature is on)). The run is about the picked record ({{account.*}}, {{person.*}}, {{lead.*}} or {{place.*}}); {{trigger.recordType}}, {{trigger.recordId}}, {{trigger.startedByKind}} and {{trigger.startedByUserId}} say who started it on what. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"recordType":{"description":"The only record type people may run it on: account, person, lead or place (a Google Maps place, while the search_places feature is on). Leave it out to allow any.","type":["string","null"],"default":null}}}},{"type":"trigger.meeting_booked@1","key":"trigger.meeting_booked","version":1,"kind":"trigger","title":"Meeting booked","description":"Starts a run when Ken's scheduling assistant books a meeting with a lead who replied to a campaign, once per booking. The run is about that lead (record lead). {{trigger.leadId}} and {{trigger.campaignId}} are the lead and campaign, {{trigger.slotStart}} and {{trigger.slotEnd}} the meeting time in UTC, {{trigger.bookingRef}} the calendar booking and {{trigger.negotiationId}} the negotiation. Set campaignId to react to one campaign only. Use it to notify the team, move the account to meeting_booked or prepare a brief. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Only meetings booked from this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.meeting_booked@2","key":"trigger.meeting_booked","version":2,"kind":"trigger","title":"A meeting is booked","description":"Starts a run when a meeting with an outside guest is booked, once per meeting, from any booking tool: a Kenso booking page, Calendly, Cal.com, HubSpot Meetings, Chili Piper, Ken's reply agent or a calendar invite. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.source}} the booking tool, {{trigger.startsAt}} the start (UTC), {{trigger.startsAtLocal}} the start written in the guest's time zone ({{trigger.guestTimeZone}}), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.joinLine}} and {{trigger.rescheduleLine}} the join and reschedule links as ready lines (empty when there is no link), {{trigger.meetingTypeName}} and {{trigger.title}} what the meeting is. A reschedule is not a new booking. A meeting whose guest is not a person on an account, a private meeting, one that already started and one the calendar sync backfilled never start a run. Set sources, meetingTypeIds or campaignIds to react to some meetings only; one left out or empty matches every meeting. trigger.meeting_booked@1 is the older trigger for the reply agent's bookings on a lead. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"sources":{"description":"Only meetings booked through one of these tools: kenso_page, calendly, cal_com, hubspot, chili_piper, reply_agent, calendar. Leave out or empty for every tool.","type":["array","null"],"items":{"type":"string"},"default":null},"meetingTypeIds":{"description":"Only meetings of one of these Kenso meeting type ids. A meeting booked outside a Kenso booking page has no meeting type and never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"campaignIds":{"description":"Only meetings whose guest came from one of these campaign ids. A meeting with no campaign never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.meeting_changed@1","key":"trigger.meeting_changed","version":1,"kind":"trigger","title":"A meeting is cancelled or marked a no-show","description":"Starts a run when a booked meeting with an outside guest is cancelled, marked a no-show or moved to a new time, once per meeting for each kind of change: a second move of the same meeting starts no second run. {{trigger.change}} is cancelled, no_show or rescheduled. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.status}} its status now, {{trigger.startsAt}} and {{trigger.startsAtLocal}} its start now (the new time after a move), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.rescheduleLine}} the reschedule link as a ready line (empty when there is none), {{trigger.cancelActor}} who cancelled (guest or host; empty when the booking tool does not say) and {{trigger.title}} what the meeting is. A meeting whose guest is not a person on an account and a private meeting never start a run. With the meetings that fall through feature on, a meeting with no account whose guest has an email starts a run too, with no record (the meeting is {{trigger.meetingId}}; {{trigger.accountId}} and {{trigger.personId}} are empty), and a cancel made after the meeting started and before it ended runs as no_show (none when the meeting was recorded), while one made after it ended starts no run. Set changes to react to some kinds only; left out or empty matches all three. Use it to offer a new time after a cancellation or a no-show. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"changes":{"description":"Only these kinds of change: cancelled, no_show, rescheduled. Leave out or empty for all three.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.meeting_notes_ready@1","key":"trigger.meeting_notes_ready","version":1,"kind":"trigger","title":"Meeting notes ready","description":"Starts a run when Kenso Notetaker's notes for a meeting are ready, once per meeting: a regenerate, a template switch or a later notes version never starts another, and a private meeting never starts one. The run has no record (record none). {{trigger.meetingId}} is the meeting, {{trigger.ownerUserId}} its owner, {{trigger.accountId}} and {{trigger.accountStage}} its account and that account's stage (absent when the meeting has no account), {{trigger.templateKey}} the notes template, {{trigger.durationSeconds}} how long the call ran, {{trigger.participantCount}} how many people were invited, {{trigger.startsAt}} when it started (UTC) and {{trigger.meetingUrl}} a link to it. The output holds no transcript, notes or facts: read them with a step. Set templateKeys, accountStages or ownerUserIds to react to some meetings only; one left out or empty matches every meeting. Use it to post a recap, update the account or draft the follow-up. Needs the notetaker feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"notetaker"}],"inputSchema":{"type":"object","properties":{"templateKeys":{"description":"Only notes written with one of these templates: discovery, demo, follow_up, pricing_negotiation, closing_procurement, kickoff, account_check_in, generic. Where the workspace has call types on, its call types are accepted too: networking, partnership, investor, internal, and its own (a key that starts with custom_). Leave out or empty for every template.","type":["array","null"],"items":{"type":"string"},"default":null},"accountStages":{"description":"Only meetings whose account is in one of these stages when the trigger fires: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact. A meeting with no account never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":"string"},"default":null},"ownerUserIds":{"description":"Only meetings owned by one of these user ids. Leave out or empty for every owner.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.meeting_starts@1","key":"trigger.meeting_starts","version":1,"kind":"trigger","title":"Before a meeting starts","description":"Starts a run a set time before a booked meeting with an outside guest starts. The time is offsetMinutes before it (1440 is 24 hours), or localTime (HH:mm) in the guest's time zone on the day of the meeting when that is at least 60 minutes before the start. It reads the meeting as it is when the time comes, so a cancelled meeting never starts a run, a moved one starts it at the new time, and a time that passed after the meeting began is skipped. minLeadMinutes skips a meeting booked too close to its start (left out, it is offsetMinutes, so a 24-hour reminder never goes out for a meeting booked 3 hours ahead). One run per meeting and start time. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.startsAt}} the start (UTC), {{trigger.startsAtLocal}} the start written in the guest's time zone ({{trigger.guestTimeZone}}), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.joinLine}} and {{trigger.rescheduleLine}} the join and reschedule links as ready lines (empty when there is no link), {{trigger.reminderText}} the reminder note of a Kenso meeting type (empty for other meetings) and {{trigger.title}} what the meeting is. A meeting whose guest is not a person on an account and a private meeting never start a run. Set sources, meetingTypeIds or campaignIds to react to some meetings only. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"offsetMinutes":{"description":"Minutes before the meeting starts, 5 to 20160 (14 days). 1440 is 24 hours before. Set this or localTime, not both.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"localTime":{"description":"A time of day as HH:mm in 24-hour time, for example 09:00: the run starts at that time in the guest's time zone on the day of the meeting, only when that is at least 60 minutes before the meeting starts. Set this or offsetMinutes, not both.","type":["string","null"],"default":null},"minLeadMinutes":{"description":"The meeting must have been booked at least this many minutes before it starts, 0 to 20160. Left out, it is offsetMinutes (60 with localTime), so a 24-hour reminder never goes out for a meeting booked 3 hours ahead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"sources":{"description":"Only meetings booked through one of these tools: kenso_page, calendly, cal_com, hubspot, chili_piper, reply_agent, calendar. Leave out or empty for every tool.","type":["array","null"],"items":{"type":"string"},"default":null},"meetingTypeIds":{"description":"Only meetings of one of these Kenso meeting type ids. A meeting booked outside a Kenso booking page has no meeting type and never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"campaignIds":{"description":"Only meetings whose guest came from one of these campaign ids. A meeting with no campaign never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.new_leads@1","key":"trigger.new_leads","version":1,"kind":"trigger","title":"New lead added","description":"Starts one run for every lead added to the workspace after the workflow is published, from any source (CSV import, Kenso Search, API, webhook), or only to one campaign. Set `campaignId` to limit it to that campaign. Leads that existed before publishing are not backfilled. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}} and {{trigger.createdAt}} describe it. Runs start within about a minute of the lead being added. Each lead starts the workflow once. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Only leads added to this campaign. Leave it out for every new lead of the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.opportunity_stage@1","key":"trigger.opportunity_stage","version":1,"kind":"trigger","title":"Deal stage changed","description":"Starts a run when a Kenso opportunity (deal) moves into one of the chosen stages or stage categories, whoever moved it. Set stageCategories (open, won, lost; default lost) or stages (this workspace's stage keys). With only stages set, only those stages start a run. The run is about the deal's account (record account). {{trigger.opportunityId}} is the deal, {{trigger.accountId}} its account, {{trigger.name}} its name, {{trigger.fromStage}} and {{trigger.fromCategory}} the stage it left, {{trigger.toStage}} and {{trigger.toCategory}} the new one, {{trigger.lostReason}} why it was lost (lost moves only, when set), {{trigger.amount}} and {{trigger.currency}} its value, {{trigger.changedAt}} when it moved, and {{trigger.personId}} and {{trigger.personEmail}} the deal's person when it names one. On a move into a lost stage, {{trigger.followUpAt}} is when to revive the deal: the first quarter-start Tuesday at least 120 days later, at 14:00 UTC; use it as logic.wait until. Set oncePerRecordDays to start at most one run per account in that many days. Needs the opportunities and lead_revival features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"stageCategories":{"description":"Stage categories that start a run when an opportunity moves into a stage of one of them: open, won, lost. Default [\"lost\"] when stages is left out too.","type":["array","null"],"items":{"type":"string"},"default":null},"stages":{"description":"Stage keys (this workspace's opportunity stages, e.g. proposal) that start a run when an opportunity moves into one, as well as stageCategories. Leave out for categories only.","type":["array","null"],"items":{"type":"string"},"default":null},"oncePerRecordDays":{"description":"Start at most one run per account every this many days, whichever of its deals moved. Leave out to run on every move.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.opportunity_went_quiet@1","key":"trigger.opportunity_went_quiet","version":1,"kind":"trigger","title":"Deal went quiet","description":"Starts a run when an open Kenso opportunity (deal) goes quiet: its account has had no two-way activity (a reply, a held meeting or a connected call) for the workspace's quietAfterDays. Once per quiet episode: the next two-way activity ends the episode, and a later silence is a new one. Set stages (this workspace's stage keys) to start only for deals in those stages; leave it out for every quiet deal. The run is about the deal's account (record account). {{trigger.opportunityId}} is the deal, {{trigger.accountId}} its account, {{trigger.name}} its name, {{trigger.stage}} its current stage, {{trigger.amount}} and {{trigger.currency}} its value, {{trigger.thresholdDays}} the quiet threshold in days, {{trigger.quietSince}} when the silence began, {{trigger.lastActivityKind}} what happened then (reply, meeting, call or created), {{trigger.wentQuietAt}} when Kenso marked it quiet, {{trigger.ownerUserId}} its owner when it has one, and {{trigger.personId}} and {{trigger.personEmail}} the deal's person when it names one. Needs the opportunities and deal_quiet features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"deal_quiet"}],"inputSchema":{"type":"object","properties":{"stages":{"description":"Stage keys (this workspace's opportunity stages, e.g. proposal): only a deal in one of them starts a run when it goes quiet. Leave out for every quiet deal.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.person_changed@1","key":"trigger.person_changed","version":1,"kind":"trigger","title":"Person changed","description":"Starts a run when a person in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (fullName, title, email, phone, linkedinUrl, leadStatus, relationship, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. A first or last name edit reports fullName as the first and last name joined by a space. Changes in a connected CRM are trigger.crm_record_changed@1. The run is about the person (record person); {{trigger.accountId}} is their account when they have one. {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.person_mapped@1","key":"trigger.person_mapped","version":1,"kind":"trigger","title":"Person mapped to an account","description":"Starts a run when a person is added to an account's buying committee (a new stakeholder), by a user, an agent, the API, committee mapping or a workflow. The run is about that person (record person). {{trigger.personId}}, {{trigger.accountId}} and {{trigger.stakeholderId}} name the person, the account and the stakeholder row; {{trigger.role}} is the committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown) and {{trigger.actorKind}} who added them. Set roles to react only to some roles, for example a new champion. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"roles":{"description":"Only these committee roles: champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown. Leave out for every role.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.places@1","key":"trigger.places","version":1,"kind":"trigger","title":"Google Maps places","description":"Once a day, runs a Google Maps places search you set here (what to look for, and a location or a map area, with optional filters) and starts one run for each place your workspace has not processed yet. A place counts as processed once any workflow delivered it, and a place this workflow already ran on never starts it again. Each read takes up to `maxPlaces` new places (100 by default, at most 1000) from at most 5 pages of 200 places, and the next read continues where it stopped; once the search has no more places, it starts again from the top after 30 days. Each page costs 1 credit (a page read again within 30 days too), counts against this workflow's monthly credit limit, and is not read when that limit or the workspace's credits cannot pay for it, so a read costs at most 5 credits, also when it finds no new place. Places without a website are left out unless filters.hasWebsite is false. The first read runs a few minutes after publishing. The run is about that place: {{place.*}} holds its fields, and {{trigger.placeId}}, {{trigger.name}}, {{trigger.website}}, {{trigger.domain}} and {{trigger.query}} describe it. Needs the Places search feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"place","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"query":{"description":"What to look for on Google Maps, such as \"dentists\" or \"coffee shops\". At most 200 characters.","type":"string"},"location":{"description":"Where to look: a city, region or address, such as \"Austin, TX\". Set this or area. At most 200 characters.","type":["string","null"],"default":null},"area":{"description":"Where to look, as a map area: its center (lat, lng) and zoom (3 to 21). Set this or location; area wins when both are set.","type":["object","null"],"properties":{"lat":{"type":["string","number"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"},"lng":{"type":["string","number"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"},"zoom":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["lat","lng","zoom"],"default":null},"country":{"description":"Two-letter country code (ISO 3166-1) to search in, such as us.","type":["string","null"],"default":null},"lang":{"description":"Language code for place names and categories, such as en or en-GB.","type":["string","null"],"default":null},"filters":{"description":"Free filters applied to every page: minRating, minReviews, hasWebsite (true by default), hasPhone, openNow, priceLevels, claimed, categories.","type":["object","null"],"properties":{"minRating":{"type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null},"minReviews":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"hasWebsite":{"type":"boolean","default":true},"hasPhone":{"type":["boolean","null"],"default":null},"openNow":{"type":["boolean","null"],"default":null},"priceLevels":{"type":["array","null"],"items":{"type":"string"},"default":null},"claimed":{"type":["boolean","null"],"default":null},"categories":{"type":["array","null"],"items":{"type":"string"},"default":null}},"default":null},"maxPlaces":{"description":"New places to start runs for in each read, from where the last read stopped. 1 to 1000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["query"]}},{"type":"trigger.reply@1","key":"trigger.reply","version":1,"kind":"trigger","title":"Reply received","description":"Starts a run when a lead replies to a campaign email and Ken has classified the reply. By default only interested replies start a run; set classes to any of interested, not_interested, automated, hard_bounce, soft_bounce, unsubscribe, out_of_office, ndr, complaint, negative, objection, wrong_contact, referral, question (workspaces with Question replies on), and campaignId to one campaign. The run is about that lead (record lead). {{trigger.classification}} is the class, {{trigger.messageId}} and {{trigger.threadId}} the email, {{trigger.leadId}} and {{trigger.campaignId}} the lead and campaign, {{trigger.receivedAt}} when it arrived. A reply that is classified again starts no second run. {{trigger.followUpAt}} is when to follow up (the date the lead asked for, else the class rule; a negative reply gets a date that only a workspace opted in to reviving negative replies uses; null for a class Ken never revives) and {{trigger.followUpSource}} where it came from (asked, out_of_office or none). Set oncePerRecordDays (1 to 365) for one run per lead in that many days. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"classes":{"description":"Reply classes that start a run: interested, not_interested, automated, hard_bounce, soft_bounce, unsubscribe, out_of_office, ndr, complaint, negative, objection, wrong_contact, referral, question (workspaces with Question replies on). Default [\"interested\"].","type":["array","null"],"items":{"type":"string"},"default":null},"campaignId":{"description":"Only replies to this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"oncePerRecordDays":{"description":"One run per lead in this many days (1 to 365). Leave out for a run per reply.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.run_failed@1","key":"trigger.run_failed","version":1,"kind":"trigger","title":"Workflow run failed","description":"Starts a run when a run of another workflow in the workspace fails (test runs excluded). Use it to alert the team in Slack or open a task. Set workflowIds to watch only some workflows; a workflow never starts on its own failures. The run has no record (record none). {{trigger.workflowName}}, {{trigger.workflowId}} and {{trigger.runId}} name the failed run, {{trigger.failedNodeId}} the step that failed, {{trigger.errorClass}} (temporary, permanent, setup, budget) and {{trigger.errorMessage}} why, {{trigger.failedAt}} when. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"workflowIds":{"description":"Only failures of these workflow ids. Leave out for every other workflow in the workspace.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.sales_navigator@1","key":"trigger.sales_navigator","version":1,"kind":"trigger","title":"Sales Navigator search","description":"Once a day, reads a Sales Navigator account search or account list through your own connected LinkedIn seat with Sales Navigator, adds the companies that are not in Accounts yet (matched by website domain, like the Accounts import), and starts one run for each account it added. Companies already in Accounts, and companies Sales Navigator shows without a website, start no run. Each read takes the first `maxCompanies` companies (100 by default, at most 1000, and at most 7 pages of the list), and counts against the seat's daily Sales Navigator read limit. The first read runs a few minutes after publishing. A seat that is disconnected or has no Sales Navigator is skipped until it is reconnected; a seat that was removed fails the trigger, and so does a seat someone other than the person who last saved the workflow connected. New accounts are added without research, so the trigger itself spends no credits; add an ai.research step to research them within the workflow's limits. The run is about that account: {{account.*}} holds its fields, {{trigger.accountId}}, {{trigger.created}} (true), {{trigger.domain}}, {{trigger.name}}, {{trigger.linkedinUrl}} and {{trigger.url}} describe it. Needs the Sales Navigator and Accounts features, and publishing it needs Accounts edit and the import permission, like the Accounts import.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"flag","key":"sales_navigator"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"The LinkedIn seat that reads the search: a seat you connected in Settings > LinkedIn whose LinkedIn account has Sales Navigator. Pick it from GET /v1/linkedin-accounts. The person who last saves the workflow must be the one who connected the seat.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"url":{"description":"A Sales Navigator account search or account list, copied from the browser's address bar, such as https://www.linkedin.com/sales/search/company?query=... or https://www.linkedin.com/sales/lists/company/123.","type":"string"},"maxCompanies":{"description":"Companies to read each day, from the top of the search or list. 1 to 1000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["linkedinAccountId","url"]}},{"type":"trigger.saved_list@1","key":"trigger.saved_list","version":1,"kind":"trigger","title":"Saved list","description":"Reads a saved company list on a schedule: once when the workflow is published, or now and then every hour, day or week. The list is `savedListId` (from GET /v1/saved-lists) and the cadence the source's `schedule`. Each read adds the list's companies to Accounts by their website domain (a company already in Accounts is matched, one without a domain is skipped, members who opted out are left out) and starts one run for each account, so every scheduled read runs every company on the list again. Accounts are added without research, so the trigger spends no credits; add an `ai.research@1` step to research them within the workflow's limits. A Bulk import source: it needs a `schedule`. The list must be a company list of this workspace; a people list, a deleted list, another workspace's list or a private list of someone other than the person who published the workflow fails the trigger. The run is about that account: {{account.*}} holds its fields, {{trigger.recordId}} is its id and {{trigger.scheduledFor}} the slot that read it. Needs the workflow sources and Accounts features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"savedListId":{"description":"The saved list to read: a company list of this workspace, from GET /v1/saved-lists (kind companies).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["savedListId"]}},{"type":"trigger.schedule@1","key":"trigger.schedule","version":1,"kind":"trigger","title":"On a schedule","description":"Starts one run on a fixed cadence: every hour (at the top of each UTC hour), every day at a set time, or every week on a set day. Set `every` to hour, day or week; a day runs at `at` (HH:mm) in `timezone`, and a week on `weekday` at `at`. Use it for digests, periodic syncs and recurring checks. The run is about no record. {{trigger.scheduledFor}} is the slot (UTC), {{trigger.firedAt}} when it fired and {{trigger.timezone}} the zone. A missed slot (downtime) fires once when it can, never once per missed slot. A day can be limited to some days with `weekdays` (a list of day names). Set `every` to cron for a five-field `cron` expression (minute, hour, day of month, month, day of week) in `timezone`, with fire times at least 15 minutes apart. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"bulk_import","sourceGroup":"time","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"every":{"description":"hour, day or week. Or cron, with a five-field expression in cron.","type":"string"},"at":{"description":"Local time of day as HH:mm (24-hour) in timezone. Ignored for hour.","type":"string","default":"09:00"},"weekday":{"description":"English day name (monday ... sunday). Used only when every is week.","type":"string","default":"monday"},"timezone":{"description":"IANA time zone id, e.g. Europe/Berlin or America/New_York.","type":"string","default":"UTC"},"weekdays":{"description":"With every day: the days it fires on, 1 to 7 distinct English day names (monday ... sunday). Left out, it fires every day.","type":["array","null"],"items":{"type":"string"},"default":null},"cron":{"description":"With every cron (at and weekday are ignored): five fields - minute, hour, day of month, month, day of week - read in timezone. Numbers, *, lists, ranges and steps only; fire times at least 15 minutes apart.","type":["string","null"],"default":null}},"required":["every"]}},{"type":"trigger.signal@1","key":"trigger.signal","version":1,"kind":"trigger","title":"Signal fired","description":"Starts a run when Ken detects a signal about a lead: funding, headcount_growth, headcount_decline, job_change, icp_timing, tenure, new_in_seat, promotion, reply, click, open or dormant. The run is about that lead (record lead). {{trigger.signal}} is the signal name, {{trigger.leadId}} and {{trigger.campaignId}} the lead and its campaign, {{trigger.payload}} the signal's own details and {{trigger.occurredAt}} when it happened. Use oncePerRecordDays to run at most once per lead and signal in that many days. watch \"dream_list\" only matches signals marked as about a dream-list account, and no Kenso signal carries that mark yet, so it matches nothing today. Test signals are ignored. When a send step reaches the lead's account, a funding, headcount_growth, job_change, new_in_seat or promotion signal is stored on that account (its Signals list) first, once per event, so the email may name it. Free. To start on companies that are hiring, use trigger.job_posts@1 (one run per company with matching job posts) instead.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"buying_signals","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"signals":{"description":"Signals that start a run: funding, headcount_growth, headcount_decline, job_change, icp_timing, tenure, new_in_seat, promotion, reply, click, open, dormant. At least one. To start on companies that are hiring, use trigger.job_posts@1 (one run per company with matching job posts) instead.","type":"array","items":{"type":"string"}},"watch":{"description":"\"dream_list\": only signals marked as about a dream-list account. No Kenso signal carries that mark yet, so this watch matches nothing today. Leave out for every signal.","type":["string","null"],"default":null},"oncePerRecordDays":{"description":"Start at most one run per lead and signal every this many days. Leave out to run on every signal.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["signals"]}},{"type":"trigger.studio_form@1","key":"trigger.studio_form","version":1,"kind":"trigger","title":"Studio form sent","description":"Starts a run when someone fills in and sends a form on one of the workspace's Studio pages. Studio pages are served on the workspace's own link host, so this is the form to link in outreach. Set assetId to one page and formId to one form on it (any case); leave either out for all. A submit Kenso judges automated (a scanner or a bot) starts no run. The run is about the lead when the page link is a lead's (record lead); a page that is not a lead's (an account's page or a shared link) runs with no record. oncePerRecordDays (0 to 365, default 0) starts at most one run per lead in that many days; 0 starts one for every submit. {{trigger.fields}} holds what was typed, by field name, as text ({{trigger.fields.email}}); a field that asks for a password, card or ID number is never kept. {{trigger.assetId}} and {{trigger.assetTitle}} are the page, {{trigger.formId}} the form, {{trigger.submittedAt}} when, and {{trigger.leadId}}, {{trigger.personId}} and {{trigger.accountId}} whose link it was. Needs the workflows_power and Studio features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"},{"kind":"flag","key":"studio"}],"inputSchema":{"type":"object","properties":{"assetId":{"description":"Only forms on this Studio page (its id). Leave out for every Studio page of the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"formId":{"description":"Only the form with this id on the page, as the page names it (for example book_demo; any case). Leave out for every form.","type":["string","null"],"default":null},"oncePerRecordDays":{"description":"Start at most one run per lead every this many days: 0 to 365 (default 0: every submit starts a run). A page that is not a lead's starts a run on every submit.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.system_contacts@1","key":"trigger.system_contacts","version":1,"kind":"trigger","title":"Kenso pipeline contacts","description":"Kenso's own pipeline only (system workflows): starts one run for every lead the old pipeline jobs of `stage` would take now (email_pipeline: the email finders and verifiers, while the workspace's jobs phase 1 flag is on; ai_qualification, ai_personalization, ai_segmentation: the AI flow jobs' contacts, with {{trigger.campaignId}} and {{trigger.campaignSegmentId}}, while its jobs phase 2 flag is on). {{lead.*}} holds the lead; {{trigger.path}} is find or verify, {{trigger.providers}} the finder stages left for the lead, {{trigger.uploadedEmailId}} the lead's uploaded email Findymail checks before a find, and {{trigger.emailId}}, {{trigger.email}}, {{trigger.attempts}} and {{trigger.lastAttemptAt}} the address to verify. linkedin_due (jobs phase 2): one run per due LinkedIn state of the lead, {{trigger.stateId}} with its {{trigger.stepOrder}} and {{trigger.dueAt}}. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"system","systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"The pipeline stage whose contacts start runs: email_pipeline, ai_qualification, ai_personalization, ai_segmentation or linkedin_due.","type":"string"}},"required":["stage"]}},{"type":"trigger.system_signal@1","key":"trigger.system_signal","version":1,"kind":"trigger","title":"Kenso campaign trigger signal","description":"Kenso's own campaign triggers only (system workflows): starts one run for every signal of `signalType` about a lead while the workspace's jobs phase 1 flag is on, for the campaign trigger `definitionId`. {{trigger.*}} is the signal as the trigger evaluation job reads it: {{trigger.signalId}}, {{trigger.signalType}}, {{trigger.source}}, {{trigger.contactId}}, {{trigger.campaignId}}, {{trigger.campaignSegmentId}}, {{trigger.payloadJson}}, {{trigger.synthetic}}, {{trigger.occurredAt}}, {{trigger.ingestedAt}} and {{trigger.signalDedupKey}}. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"system","systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"definitionId":{"description":"The campaign trigger (trigger_definition id) the run evaluates.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"signalType":{"description":"The campaign trigger's signal type as Kenso stores it (e.g. LinkClicked): only signals of this type start a run.","type":"string"}},"required":["definitionId","signalType"]}},{"type":"trigger.webhook@1","key":"trigger.webhook","version":1,"kind":"trigger","title":"Webhook received","description":"Starts a run each time the workflow's own webhook URL receives a JSON POST (publishing creates the URL; it is shown in the trigger settings and returned as webhook.url when the workflow is read). Without createPerson the run is about no record and no lead or contact is created; with it, the run is about the person it creates or matches, so send.email, studio.page and account steps act on that person and their account. {{trigger.fields.<name>}} holds the mapped values (email, first_name, last_name, company_name, ... and custom variables by name), {{trigger.raw}} the whole body, plus sourceId, sourceName and receivedAt. Pick a `preset` (hubspot_forms, typeform, webflow, tally, rb2b, vector, generic, zapier, make, n8n) or give a `mapping`. typeform and tally map the questions labelled Email, First name, Last name, Company and Phone (typeform also reads the hidden fields email, first_name, last_name and company; tally falls back to the first four fields in order, each only a text field no label took). generic reads flat keys (email, first_name, last_name, full_name, company, company_domain, title, phone, linkedin_url); zapier, make and n8n are generic. `createPerson` (default true with a preset, false with a mapping) creates or updates the person first and adds personId, accountId and created (true only on the delivery that created the person); it needs lead_intake: while intake is off or over its limit the delivery starts no run and the sender is asked to retry, and a body intake cannot take (no email, LinkedIn URL or name with a company domain) starts the run without a person. `dedupPath` (e.g. form_response.hidden.email) with `dedupWindowDays` starts one run per value. Set `respond` ({} or { \"waitSeconds\": 1 to 25, \"body\": \"envelope\" or \"outputs\" }) to answer the sender with the run's interface.outputs: the request waits (10 seconds by default) and gets 200 { status, runId, outputs }, or with body outputs the outputs object alone (a failed run is then 502). A run not finished in time answers 202 with its runId, so keep waits and approvals out of such a workflow. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"preset":{"description":"A preset that pre-fills the mapping: hubspot_forms, typeform, webflow, tally, rb2b, vector, or generic (flat keys), with zapier, make and n8n as generic.","type":["string","null"],"default":null},"mapping":{"description":"Payload fields to copy into trigger.fields: target lead field (or custom_variable with variableName) and a payload path such as data.email. Overrides the preset.","type":["array","null"],"items":{"type":"object","properties":{"target":{"type":"string"},"variableName":{"type":["string","null"]},"useAsAiContext":{"type":"boolean"},"fallback":{"type":["boolean","null"]},"source":{"type":"object","properties":{"kind":{"type":"string"},"path":{"type":["string","null"]},"value":{"type":["string","null"]},"labelPath":{"type":["string","null"]},"valuePath":{"type":["string","null"]},"label":{"type":["string","null"]},"labelsPath":{"type":["string","null"]},"idPath":{"type":["string","null"]},"index":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}}}}},"default":null},"dedupPath":{"description":"Payload path whose value makes the dedup key, e.g. form_response.hidden.email. Deliveries with the same value start one run.","type":["string","null"],"default":null},"dedupWindowDays":{"description":"How many days (1 to 3650) a dedup key blocks another run. Without it a key blocks forever.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"createPerson":{"description":"Create or update the person (lead intake) before each run, run about that person, and add personId, accountId and created to the trigger. Defaults to true with a preset and false with a mapping. Needs lead_intake. While it is off, past the peopleIntake quota, or when intake loses a race, the delivery starts no run and answers 503 or 429 with Retry-After so the sender retries; a body intake cannot take (no email, LinkedIn URL or name with a company domain) starts the run without a person. created is true only on the delivery that created the person, so a sender's retry reads false.","type":["boolean","null"],"default":null},"respond":{"description":"Set it to answer the sender with the run's result: the request waits for the run and gets the workflow's interface.outputs. Needs interface.outputs. A run that is not finished in time, or a workspace past its limits, answers 202 with the runId, never an error.","type":["object","null"],"properties":{"waitSeconds":{"description":"How many seconds the sender waits for the run: 1 to 25. Default 10.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":25},"body":{"description":"envelope (default): { status, runId, outputs }, and a failed run is 200 with an error. outputs: the outputs object is the whole body, and a failed run is 502.","type":["string","null"],"default":null,"enum":["envelope","outputs",null]}},"default":null}}}},{"type":"trigger.website_visit@1","key":"trigger.website_visit","version":1,"kind":"trigger","title":"Website visit","description":"Starts a run when a known person, or a company a visitor-ID provider matched, views a page of your site (the ken.js snippet from Settings > Website Tracking). The run is about the visit's account (record account): a known person's account, or, with who company or any, the matched company's account, which Kenso creates from the matched domain (source website_visit) when the visit has none yet, so it fires for companies new to the workspace too. A visit that ends with no account starts no run: a known person on no account, or a matched company that gets none because account creation is off for the workspace and no account has the domain, the domain was removed from one of your accounts, it is your own company (one of your site's domains), the domain is not a company domain, or the match came more than 3 days after the visit. {{trigger.accountId}} is the account, {{trigger.personId}} the person (absent for a company match), {{trigger.path}} and {{trigger.pageLabel}} the page, {{trigger.points}} its points, {{trigger.known}} and {{trigger.highIntent}} whether the person is known and the page is tagged, {{trigger.companyDomain}} the matched domain, {{trigger.companyConfidence}} how sure the company match is (high or medium for a Kenso visitor ID match; a Dealfront match may also be low; null for a person, a provider webhook match or no match), {{trigger.source}} how Ken knows the visitor (link_click, form, booking or identify) or which provider matched the company, and {{trigger.visitsInWindow}} the account's visits within withinDays. who is known_person (default), company or any; pages is high_intent (default: pages tagged in Settings > Website Tracking, and only those count) or any; minVisits within withinDays waits for repeat visits; oncePerRecordDays runs at most once per account in that many days. Needs the website signals feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"website","systemOnly":false,"requires":[{"kind":"flag","key":"website_signals"}],"inputSchema":{"type":"object","properties":{"who":{"description":"Whose visit starts a run: known_person (a person Ken knows from a campaign link click, a form or a booking; default), company (a company a visitor-ID provider matched, with no known person) or any.","type":"string","default":"known_person","enum":["known_person","company","any"]},"pages":{"description":"Which pages start a run and count toward minVisits: high_intent (pages tagged in Settings > Website Tracking; default) or any.","type":"string","default":"high_intent","enum":["high_intent","any"]},"minVisits":{"description":"Start only once the account has this many human visits to those pages within withinDays, this one included: 1 to 50 (default 1).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":1},"withinDays":{"description":"The window minVisits and visitsInWindow count in, in days: 1 to 30 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7},"oncePerRecordDays":{"description":"Start at most one run per account every this many days. Leave out to run on every matching visit.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"webhook.send@1","key":"webhook.send","version":1,"kind":"action","title":"Send webhook","description":"POSTs a JSON payload to a webhook URL, for example your own backend or an automation tool, and returns the status. Every request carries Ken-Idempotency-Key (wf:<runId>:<stepId>:<iteration>, the same on every retry, so the receiver can drop duplicates) and Ken-Timestamp (unix seconds); with a signing secret it also carries Ken-Signature: v1=<hex HMAC-SHA256 of \"<timestamp>.<body>\">. 2xx succeeds; 429, 5xx and timeouts are retried; other 4xx fail permanently; private and internal addresses are refused. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL of the receiver, on port 80, 443 or 8080-8090.","type":"string"},"payload":{"description":"The JSON body to POST."},"secretName":{"description":"Name of the workspace secret holding the signing key. Set secret to {{secrets.<this name>}}.","type":["string","null"],"default":null},"secret":{"description":"The signing key, as {{secrets.NAME}}. When set, the request carries a Ken-Signature header.","type":["string","null"],"default":null}},"required":["url","payload"]}},{"type":"webhook.wait@1","key":"webhook.wait","version":1,"kind":"action","title":"Wait for a webhook","description":"Pauses the run until another system posts to the run's resume URL, then continues with what was posted. Give that system the URL in an earlier step, for example an http.request@1 whose body carries {{run.resumeUrl}}; it is one signed URL per run and needs no other credential. The other system sends one POST with any body up to 256 KB: JSON is parsed into body, anything else arrives as body.raw. A post that arrives before this step starts is kept for one hour and applied within a few seconds of the step starting to wait. If nothing arrives within timeoutSeconds (default one day, at most 30 days) the step succeeds with timedOut true, or fails when onTimeout is fail. Later steps read {{<step>.body.<field>}} and {{<step>.timedOut}}. orEvent (with orMatch) also ends the wait when that event, for example reply.received, comes first for the run's lead, person or account; resumedBy then says webhook, event or timeout, and event holds { type, payload } when the event won. The URL is for systems, not people: do not put it in an email to a lead. In a test run the step does not wait and returns its example. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"timeoutSeconds":{"description":"How long to wait for a post to the run's resume URL, 60 to 2592000 seconds (30 days). Default 86400 (one day).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":86400,"minimum":60,"maximum":2592000},"onTimeout":{"description":"What happens when nothing is posted in time: continue (the step succeeds with timedOut true) or fail (the step fails).","type":"string","default":"continue","enum":["continue","fail"]},"orEvent":{"description":"An event that also ends the wait when it comes first for the run's lead, person or account, for example reply.received or meeting.scheduled (any event logic.wait_for_event@1 takes). The run must be about a lead, person or account. Leave it out to wait for the post alone.","type":["string","null"],"default":null},"orMatch":{"description":"With orEvent: payload fields the event must have, each equal to its value, as logic.wait_for_event@1's match (a list is one of). Null takes every orEvent for the run's record.","type":["object","null"],"default":null}}}}]}
|
|
1
|
+
{"stepTypes":[{"type":"account.add_to_campaign@1","key":"account.add_to_campaign","version":1,"kind":"action","title":"Add to a campaign","description":"Account runs only. Adds the account's people with no 1:1 touch planned to a campaign, the workflow's own campaign unless you send campaignId. who is not_yet_contacted (the default: nobody ever sent them a 1:1 touch, a member mailbox email or a campaign email) or everyone_mapped. People whose role is in skipRoles (default economic_buyer) and anyone touched within skipTouchedWithinDays (default 30 days, 0 turns it off) stay out, and so do blockers, people not targeted, people without an email and people another open campaign already holds, so an account's people join one campaign however many take them. Everything the workflow saved on the account travels with each person it adds, as custom variables the campaign's emails can use. Imports like any lead upload (dedup, blocklist, lead credits), and running it again adds nobody twice. The step never sends: the campaign's own sequence does. Use it for nurture air cover after trigger.account_stage, with stages [\"nurture\"]: an account that left those stages before the step ran gets nobody and the run ends. Needs the nurture_air_cover feature. Returns campaignId, added, alreadyIn and skipped. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"nurture_air_cover"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Campaign to add the account's people to. Defaults to the workflow's own campaign in a campaign workflow.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"who":{"description":"Who joins: not_yet_contacted (nobody touched them yet, the default) or everyone_mapped.","type":"string","default":"not_yet_contacted"},"skipRoles":{"description":"Stakeholder roles that never join. Defaults to [\"economic_buyer\"]; [] skips no role.","type":["array","null"],"items":{"type":"string"},"default":null},"skipTouchedWithinDays":{"description":"Skips anyone touched within this many days (1:1 send, member mailbox email or campaign send). 0 turns it off.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30},"stages":{"description":"Add people only while the account is in one of these stages. Otherwise the step adds nobody and the run ends.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"account.classify_tier@1","key":"account.classify_tier","version":1,"kind":"ai","title":"Classify into tier","description":"Places the run's account (an account run, a person run, or a lead with an account) in one of the workspace's account tiers with its tiers prompt from Knowledge > Prompts: the prompt for the tier the account is in, else the one for Everyone, which reads the account's firmographics, signal score, engaged people, plan and latest signals and picks the tier whose \"who belongs\" fits best. The prompt's first judgment of an account stores the tier and routes nothing, also over a tier the score stored, unless that tier put the account in its campaign; an account it judged before moves and routes to the new tier's destination as the ladder does. A tier a person set by hand, and a stage the ladder does not place (meeting_booked, lost, paused, not_a_fit), are left alone at no charge, and so is an account judged recently (30 minutes by default) at the score it has now, so person and lead runs of one account judge it once. Needs custom tiers (accounts_tiers, accounts_tiers_custom and knowledge). Returns from, to, changed and status (placed, moved, unchanged, hand_set or not_routable). Charged once per answer (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts_tiers"},{"kind":"flag","key":"accounts_tiers_custom"},{"kind":"flag","key":"knowledge"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow places the account. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"account.map_committee@1","key":"account.map_committee","version":1,"kind":"data","title":"Map buying committee","description":"Maps the buying committee of the run's account (an account run, or the account of a person or lead run): Ken finds the people who buy, approve and sign, adds them to the account and fills its seats. The step waits until the committee run ends, then queues an email find and a phone find for each signer (economic buyer, approver, executive sponsor) who has no email or no phone yet, and does not wait for those finds. A signer who is do not contact, unsubscribed or blocklisted gets no find, and an account whose domain is on the workspace blocklist gets none and ends blocklisted, a committee reused within freshDays included. Charged as it runs: the committee run on CommitteeMapping (its AI work, about 4 credits), 1 credit per email found and about 5.2 per phone found. The committee run also queues email finds for up to 6 top stakeholders without an email, on the same spend limit; signerEmails turns off only the signers' finds. Free when the account has a committee run that succeeded within freshDays (30 by default), and a run already open is waited on, never started twice. A signer searched within freshDays (found or not found) is not searched again. Phone finds need the calls or whatsapp feature, except in the LinkedIn connections enrich copies, which find them whatever the calling flags. Needs accounts_committee. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: done, fresh, failed, waiting_credits, spend_scope_exhausted, timed_out or blocklisted, and committeeRunId, signers, emailFindsQueued, phoneFindsQueued and phonesSkippedReason.","cost":{"free":false,"action":"CommitteeMapping","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_committee"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a committee mapped within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365},"maxWaitMinutes":{"description":"How long the step waits for the committee run to end, in minutes, 5 to 1440. Default 180. Past it the step ends with status timed_out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":180,"minimum":5,"maximum":1440},"signerEmails":{"description":"Queue an email find for each signer (economic buyer, approver, executive sponsor) without an email. Default true. The committee run queues its own email finds for up to 6 top stakeholders either way.","type":"boolean","default":true},"signerPhones":{"description":"Queue a phone find for each signer without a phone. Default true. Outside the LinkedIn connections enrich copies it needs the calls or whatsapp feature; without it the step skips phones and says so in phonesSkippedReason.","type":"boolean","default":true}}}},{"type":"account.plan@1","key":"account.plan","version":1,"kind":"ai","title":"Write outreach plan","description":"Starts Ken's outreach plan for the run's account (an account run, or the account of a person or lead run): the touches to each person on its committee over the plan's weeks, titled for this account. Sends nothing: Ken drafts each touch when it comes due. The drafts this step places wait for approval. Steps Ken adds to the plan later may send without it while Send email or Send LinkedIn messages runs on its own (Settings > Ken agent). The step does not wait for the drafts. Charged as it runs: the plan's titles on AccountPlan and each draft on AccountWriter (each priced by its AI work). Its estimate covers the titles and one draft (about 4 credits); every later draft holds against the same spend limit as it comes due, and one that does not fit stays planned for a person to write. Skipped when the account has no research that succeeded (no_research). An account whose plan has not ended keeps it, at no charge (exists). A failure fails the step. Needs accounts_plan. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: started, exists or spend_scope_exhausted (the plan started but kept generic titles), and planId.","cost":{"free":false,"action":"AccountPlan","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_plan"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow plans the account. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"account.research@1","key":"account.research","version":1,"kind":"data","title":"Research account","description":"Researches the run's account (an account run, or the account of a person or lead run) with Kenso's account research: the company's site, news and Ken Search, written up as why now, an angle and a fit score. The step waits until the research run ends, so steps after it can use the research. Charged as it runs (AccountResearch: its AI work, about 12 credits a run, plus the web pages it reads), when the run succeeds. Free when the account has a research run that succeeded within freshDays (30 by default), and a run already open is waited on, never opened twice. Needs linkedin_connections_enrich and accounts_research. In the LinkedIn connections enrich job the job's spend limit bounds it. In any other workflow each research run it opens counts 20 credits, a research run's usual ceiling, against the workflow's credit limits, so creditsPerRun and creditsPerMonth need at least 20. Returns status: done, fresh, failed, waiting_credits, spend_scope_exhausted or timed_out (still running after maxWaitMinutes, 180 by default), and researchId.","cost":{"free":false,"action":"AccountResearch","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_research"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a research run that succeeded within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365},"maxWaitMinutes":{"description":"How long the step waits for the research run to end, in minutes, 5 to 1440. Default 180. Past it the step ends with status timed_out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":180,"minimum":5,"maximum":1440}}}},{"type":"account.set_stage@1","key":"account.set_stage","version":1,"kind":"action","title":"Set account stage","description":"Moves the run's account (an account run, a person run, or a lead with an account) to a stage: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor or do_not_contact. Use it to keep the pipeline current, for example engaged after a reply or meeting_booked after a booking. Onboarding and client make the account a customer, so its domains go on the blocklist. A customer can move to churned, lost, competitor or do_not_contact (its domains stay blocked), never to a stage that unblocks them: the step fails, and a workspace admin makes that move. The change shows on the account timeline with actor workflow. Setting the stage the account already has does nothing, and a stage a person set by hand is left alone. Set from (for example [\"nurture\"]) to move the account only out of those stages: then a stage a person set moves too, because from is the guard, and an account a person already moved to another stage is left alone. Returns from, to and changed. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"New stage: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor or do_not_contact.","type":"string"},"reason":{"description":"Why the workflow moves the account. Shown in the run log.","type":["string","null"],"default":null},"from":{"description":"Move only when the account is in one of these stages, for example [\"nurture\"]. Then a stage a person set moves too, because these stages are the guard. Leave out to move from any stage except one a person set.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["stage"]}},{"type":"ads.add_to_audience@1","key":"ads.add_to_audience","version":1,"kind":"action","title":"Add to an ad audience","description":"Adds the run's lead to this workflow's matched audience on an ad platform (google_ads, meta_ads or linkedin_ads), through the workspace's connected ad account. Each workflow keeps one audience per platform, created the first time with audienceName. Kenso uploads the hashed email of new members on its next audience sync (every 6 hours) and removes anyone who unsubscribes, bounces, is blocklisted or deleted, the same rules as a campaign audience. The audience keeps syncing after the workflow stops, until each window ends: pause or delete it under Settings > Integrations > Ad platforms. Deleted while the workflow runs, its next lead starts a new one. removeAfterDays is a retargeting window: a person leaves the audience that many days after the last run that added them. Works on lead runs (a click or reply signal, a new lead), person runs (that person's newest lead) and any run with leadId, for example {{item.leadId}} in a for-each. Returns adAudienceId, added, and reason when added is false (already_in, no_email, no_lead or library_contact). Needs the ad platform connected with an ad account picked under Settings > Integrations > Ad platforms, and the ad_audiences feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"ad_audiences"}],"inputSchema":{"type":"object","properties":{"provider":{"description":"Ad platform: google_ads, meta_ads or linkedin_ads. A platform Kenso cannot connect yet fails the run. Connect it and pick its ad account under Settings > Integrations > Ad platforms first.","type":"string","enum":["google_ads","meta_ads","linkedin_ads"]},"audienceName":{"description":"Name of the audience Kenso creates on the platform, for example \"Ken clickers\". Used when the workflow's audience is created; changing it later does not rename the audience.","type":"string","minLength":1,"maxLength":200},"removeAfterDays":{"description":"Retargeting window in days (1 to 3650): a person leaves the audience this many days after the last run that added them. Leave out to keep them until they unsubscribe, bounce or are deleted.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"leadId":{"description":"The lead (contact) to add, for example {{item.leadId}} inside a for-each. Leave out to add the run's lead, or on a person run that person's newest lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["provider","audienceName"]}},{"type":"ads.sync_campaign_audience@1","key":"ads.sync_campaign_audience","version":1,"kind":"action","title":"Sync campaign leads to an ad audience","description":"Makes a campaign's whole lead list a matched audience on an ad platform (google_ads, meta_ads or linkedin_ads), through the workspace's connected ad account: the same audience Settings > Integrations > Ad platforms creates for a campaign. Send campaignId (for example {{trigger.campaignId}}; a campaign workflow defaults to its own campaign) or campaignStatuses, for example [\"ready\"] on a daily schedule, to cover every campaign of the workspace in those statuses (active, draft, building, ready, paused, completed, error or archived). A campaign without an audience on that platform gets one, named \"Ken - {campaign name}\", at most 50 per run (the rest are listed in skipped for the next run). The workflow owns its campaigns' audiences: a paused one is resumed, and one a member deleted is created again on the next run, so run the step on chosen campaigns (campaignId) to keep one out. It never deletes. Kenso's audience sync (every 6 hours) uploads the leads' hashed emails, adds new leads and removes anyone who unsubscribes, bounces, is blocklisted or deleted. With enhancedMatching true (meta_ads and linkedin_ads), the audiences also get the leads' hashed personal emails, and on Meta phone numbers, from Kenso's licensed people dataset, so the platform matches more of them, in workspaces Kenso has turned that on for. Returns created, alreadyPresent (campaign, audience id and status) and skipped. Needs the ad platform connected with an ad account picked under Settings > Integrations > Ad platforms, and the ad_audiences feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"ad_audiences"}],"inputSchema":{"type":"object","properties":{"provider":{"description":"Ad platform: google_ads, meta_ads or linkedin_ads. A platform Kenso cannot connect yet fails the run. Connect it and pick its ad account under Settings > Integrations > Ad platforms first.","type":"string","enum":["google_ads","meta_ads","linkedin_ads"]},"campaignId":{"description":"One campaign, for example {{trigger.campaignId}}. Leave out with campaignStatuses, or in a campaign workflow for its own campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"campaignStatuses":{"description":"Every campaign of the workspace in these statuses: active, draft, building, ready, paused, completed, error or archived, for example [\"ready\"]. Use it on a schedule.","type":["array","null"],"items":{"type":"string"},"default":null},"enhancedMatching":{"description":"true: the audiences the step creates or keeps also upload the hashed personal emails (and on meta_ads, phone numbers) Kenso's licensed people dataset holds for the leads, so the platform matches more of them. meta_ads and linkedin_ads only. false (the default) leaves each audience's setting as it is.","type":"boolean","default":false}},"required":["provider"]}},{"type":"ai.agent@1","key":"ai.agent","version":1,"kind":"ai","title":"AI agent","description":"Runs an AI agent toward a goal written in plain words, using read-only Kenso tools (web_fetch for one web page, ken_search_companies and ken_search_people for Kenso Search lookups, email_copy_grade and email_copy_lint for Kenso's copy grade and copy rules, email_copy_sameness for how samey a batch of one prompt's lines is, domain_auth_check for a domain's SPF, DMARC, MX and common DKIM selectors, domain_blocklist_check for Spamhaus DBL, SURBL and URIBL) and returning JSON that matches the returns schema. With workflowTools it can also run up to 5 of the workspace's published workflows that declare an interface, each as a tool that takes the interface inputs, waits up to 30 seconds and returns the run's status and outputs (at most 10 workflow runs per step run, listed in toolRuns). Each of those runs charges its own steps, which creditCap does not cover. It stops after 4 (cheap), 8 (balanced) or 16 (smart) tool rounds or the tier's token cap and returns what it has with truncated = true. Use it for multi-step lookups a single prompt cannot do. Charged once per run by tier (WorkflowAiAgentCheap, WorkflowAiAgentBalanced, WorkflowAiAgentSmart); each email_copy_grade call also takes one unit of the workspace's copy grade limit (20 a minute, 500 a day), like the copy grade in the app.","cost":{"free":false,"action":null,"actionByTier":{"balanced":"WorkflowAiAgentBalanced","cheap":"WorkflowAiAgentCheap","smart":"WorkflowAiAgentSmart"},"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"instructions":{"description":"The goal, in plain words.","type":"string"},"returns":{"description":"JSON schema of the result the agent must return. Leave it out for {\"text\": \"...\"}.","type":["object","null"],"default":null},"tools":{"description":"Tools the agent may use: web_fetch, ken_search_companies, ken_search_people, email_copy_grade, email_copy_lint, email_copy_sameness, domain_auth_check, domain_blocklist_check. None by default.","type":["array","null"],"items":{"type":"string"},"default":null},"tier":{"description":"AI tier: cheap (4 tool rounds), balanced (8, default) or smart (16).","type":"string","default":"balanced","enum":["cheap","balanced","smart"]},"creditCap":{"description":"The most credits this step may cost; the engine checks it against the tier price.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's instructions came from (Knowledge > Prompts). Kenso copies its body into instructions; the step still runs instructions as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"workflowTools":{"description":"Workflows the agent may run as tools, at most 5. Each is a published workflow of this workspace with an interface block: the agent passes the interface inputs as the tool's arguments, Kenso runs the workflow on the run's record and waits up to 30 seconds, and the agent reads its status and outputs. At most 10 workflow runs per step run.","type":["array","null"],"items":{"type":"object","properties":{"workflowId":{"description":"The id of the workflow to run. It must be published and declare an interface, and cannot be the workflow this step is part of.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"name":{"description":"The tool's name for the agent: a lower-case letter, then 2 to 39 lower-case letters, digits or _, unique in the step. Leave it out for wf_ and the workflow's name.","type":["string","null"],"default":null},"description":{"description":"What the tool is for, in plain words. Leave it out for the workflow's own description.","type":["string","null"],"default":null,"maxLength":500}},"required":["workflowId"]},"default":null,"maxItems":5}},"required":["instructions"]}},{"type":"ai.condition@1","key":"ai.condition","version":1,"kind":"ai","title":"AI condition","description":"Answers a yes/no question about the run's record in plain words, for conditions a formula cannot express (for example \"does this company sell to hospitals?\"). Returns result (true for yes) and a one-sentence reason; branch on {{<step>.result}}. Charged once per call (WorkflowAiCondition).","cost":{"free":false,"action":"WorkflowAiCondition","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"question":{"description":"A yes/no question about the record, in plain words.","type":"string"},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]}},"required":["question"]}},{"type":"ai.image@1","key":"ai.image","version":1,"kind":"ai","title":"AI image","description":"Generates one image for the run's record from a prompt, optionally using the lead's profile photo, company logo, the sender logo, a website screenshot or the lead's own image as references, and stores it. It can save the image as the lead's image for a campaign image variable, so the campaign's emails send it. Charged per ready image by the AI work it took (WorkflowAiImage); free on the workspace's own model key; a failed image costs nothing. A test run makes and charges a real image but never saves it. Needs campaign_images.","cost":{"free":false,"action":"WorkflowAiImage","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"campaign_images"}],"inputSchema":{"type":"object","properties":{"prompt":{"description":"What the image shows. Reference record fields with {{...}}. Put text the image must show in double quotes; the spelling check reads it back.","type":"string"},"references":{"description":"Pictures the model works from, taken from the run's lead when it has them: profile_photo, company_logo, sender_logo, website_screenshot, custom_image. A missing one is skipped.","type":["array","null"],"items":{"type":"string"},"default":null},"model":{"description":"Image model: openai/gpt-image-2.6-sunburst (default), openai/gpt-image-2.6-flare, openai/gpt-image-2, google/gemini-nano-banana-2.1 or spacexai/grok-imagine-image-2.0. Only the two GPT Image 2.6 models make animated GIFs.","type":"string","default":"openai/gpt-image-2.6-sunburst"},"size":{"description":"Size: 1024x1024 (default), 1536x1024 or 1024x1536.","type":"string","default":"1024x1024","enum":["1024x1024","1536x1024","1024x1536"]},"quality":{"description":"Quality: low, medium (default) or high.","type":"string","default":"medium","enum":["low","medium","high"]},"spellingCheck":{"description":"Read the image's text back and regenerate once when a quoted string is missing. On by default.","type":"boolean","default":true},"saveToImageVariable":{"description":"Key of a per_prospect image variable of the lead's campaign. When set, the image becomes the lead's image for that variable, so its {{key}} token sends it. Lead runs in a campaign only; a test run never saves it.","type":["string","null"],"default":null},"format":{"description":"still (default) for one image, or gif for an animated GIF. A GIF needs a GPT Image 2.6 model and no references, and costs about a third of a still per frame (at least one still).","type":"string","default":"still","enum":["still","gif"]},"frameCount":{"description":"Frames of an animated GIF, 2 to 16 (default 9). Ignored for a still.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":9},"frameDurationMs":{"description":"Milliseconds each GIF frame shows, 20 to 2000 (default 200), rounded to 10. Ignored for a still.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":200}},"required":["prompt"]}},{"type":"ai.prompt@1","key":"ai.prompt","version":1,"kind":"ai","title":"AI prompt","description":"Sends one prompt about the run's record to an AI model and returns its answer. The answer is an object matching outputSchema when one is given, otherwise {\"text\": \"...\"}. Use it to write, classify or extract one thing per record, for example a first line or a product category. Charged once per call by tier (WorkflowAiPromptCheap, WorkflowAiPromptBalanced, WorkflowAiPromptSmart). In a Bulk import workflow, in a workspace with workflow_sources on, the balanced and smart tiers cost half (WorkflowAiPromptBalancedBulk, WorkflowAiPromptSmartBulk); the cheap tier costs the same. Elsewhere every tier costs its real-time price; a workflow estimate's bulkPriceApplies says which.","cost":{"free":false,"action":null,"actionByTier":{"balanced":"WorkflowAiPromptBalanced","cheap":"WorkflowAiPromptCheap","smart":"WorkflowAiPromptSmart"},"chargeOn":"call","freeOnCustomerKey":false,"bulkActionByTier":{"balanced":"WorkflowAiPromptBalancedBulk","smart":"WorkflowAiPromptSmartBulk"}},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"prompt":{"description":"The prompt. Reference record fields with {{...}}; the run's record is also given to the model.","type":"string"},"outputSchema":{"description":"JSON schema (type object) of the answer. Leave it out for {\"text\": \"...\"}.","type":["object","null"],"default":null},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's prompt came from (Knowledge > Prompts). Kenso copies its body into prompt; the step still runs prompt as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["prompt"]}},{"type":"ai.qualify@1","key":"ai.qualify","version":1,"kind":"ai","title":"Qualify with AI","description":"Qualifies the run's record (an account, a person with their account, or a lead with its company, as in campaign workflows) the way campaign qualification does: who the audience is, what a record must have to qualify and what rules it out, each in plain words and each optional. It scores the record from 0 to 100 (by how to score when given, else by the qualification text or criteria, else by the workspace's ideal customer profile). Returns fit (yes or no against the audience, qualifies and disqualifies when any is given, else true at a score of 70 or more), score and short reasons. Use it to filter or branch before spending on enrichment or outreach. To put a campaign's lead in one of its segments, use campaign.segment@1. Charged once per record (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"criteria":{"description":"What a good fit looks like, in plain words. Leave it out to score against the workspace's ideal customer profile (its company context).","type":["string","null"],"default":null},"tier":{"description":"AI tier: cheap (default), balanced or smart.","type":"string","default":"cheap","enum":["cheap","balanced","smart"]},"instructions":{"description":"Extra guidance for the scoring, for example what to weigh most.","type":["string","null"],"default":null},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's instructions came from (Knowledge > Prompts). Kenso copies its body into instructions; the step still runs instructions as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"audienceDescription":{"description":"Who the audience is, in plain words.","type":["string","null"],"default":null,"maxLength":4000},"qualificationCriteria":{"description":"What a record must have to qualify.","type":["string","null"],"default":null,"maxLength":4000},"disqualificationCriteria":{"description":"What rules a record out.","type":["string","null"],"default":null,"maxLength":4000},"scoringCriteria":{"description":"How to score a record from 0 to 100.","type":["string","null"],"default":null,"maxLength":4000}}}},{"type":"ai.research@1","key":"ai.research","version":1,"kind":"ai","title":"Research account","description":"Researches the run's account (or the account of the run's person or lead, or a lead's own company while it has no account): reads its website and record, then returns a short summary, buying signals, a suggested outreach angle and a 0-100 fit score against the workspace's ideal customer profile. Use it before writing personalized outreach. Charged once per record (WorkflowAiResearch).","cost":{"free":false,"action":"WorkflowAiResearch","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"focus":{"description":"What to look for, for example \"recent funding and sales hiring\". Leave it out for a general account brief.","type":["string","null"],"default":null},"tier":{"description":"AI tier: cheap, balanced (default) or smart.","type":"string","default":"balanced","enum":["cheap","balanced","smart"]},"knowledgePromptId":{"description":"The id of the Knowledge prompt this step's focus came from (Knowledge > Prompts). Kenso copies its body into focus; the step still runs focus as written. Leave it out unless the text came from a Knowledge prompt.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"ai.voice_note@1","key":"ai.voice_note","version":1,"kind":"ai","title":"Voice note","description":"Ken writes and speaks a voice note for the run's person, ready for a LinkedIn, WhatsApp, Facebook or iMessage send step to attach. To send it, give send.linkedin@1 (kind message), send.whatsapp@1, send.facebook@1 (kind message) or send.imessage@1 this whole step as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note), on a message to the same person. The person is the run's person (a person run's person, a lead run's person) unless contactId names one; an account run needs contactId. Ken writes from the person's profile and the workspace's Knowledge; campaignId (default: the run's campaign) files the note and its charge under that campaign. voice is the same object as a LinkedIn voice note sequence step; a reference inside it, such as script {{writer.text}}, is filled in first. With voice.matchLeadLanguage, a script (fixed text) is translated into the person's language when it differs from the voice's. A ready note is charged once (LinkedInVoiceNote; ImessageVoiceNote when iMessage is the workspace's only voice note feature or only send.imessage@1 steps send it), priced by the script and speech work done on Kenso's keys (nothing when the workspace's own keys did it); a failed note costs nothing and returns status failed with failureReason, so the workflow can branch on {{note.status}}. A note only send.imessage@1 steps send (or any note while imessage is the workspace's only voice note feature) goes only once the person has replied on an iMessage thread: until then it fails at once, unwritten and uncharged, with failureReason recipient_must_reply (no thread of their own, or no reply on it) or sms_thread (their thread is SMS), whatever the send step's approval. It fails the same way with imessage_line_owner_left when the line the text goes from has an owner who can't send from it (an admin gives the line a new owner in Delivery), with imessage_line_gone when the line of the thread it would go on can no longer send (a reply on that thread is refused the same way), and with person_refused when the person said no and nothing since takes it back, on a retry of the step too. Before any of those, once the person has a number to text, it fails with phone_opt_out when the number it would go to texted STOP or the person opted out of texts, with do_not_call when a provider the workspace's own key asked flagged the person do not call, and with suppressed:<reason> (such as suppressed:blocklisted) when the person is on the blocklist, on do-not-contact or unsubscribed (or a domain of the run's account is on the blocklist, as send.imessage@1 reads it): a reply to them is refused the same way, except that a member may still answer a person who wrote in the thread when only a provider flagged them do not call. A retried step returns the same note and never charges twice. A note's charge counts toward the workflow's credit limits like any paid step's. It needs the linkedin_voice_notes, whatsapp or imessage feature (any one); a note a send.linkedin@1, send.whatsapp@1 or send.facebook@1 step sends needs linkedin_voice_notes or whatsapp, and one a send.instagram@1 step sends needs instagram and linkedin_voice_notes, so with only imessage on such a workflow does not publish. A test run writes and charges a real note. For an Instagram DM, set channel \"instagram\" and give the step to send.instagram@1: Kenso makes the note as an m4a, which Instagram needs; that needs the instagram and linkedin_voice_notes features, and a workflow where another send step carries a note with channel \"instagram\" does not publish (voice_note_channel_mismatch).","cost":{"free":false,"action":"LinkedInVoiceNote","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"any_flag","key":"linkedin_voice_notes","anyOf":["linkedin_voice_notes","whatsapp","imessage"]}],"inputSchema":{"type":"object","properties":{"voice":{"description":"The voice and the words: the same object as a LinkedIn voice note sequence step.","type":"object","properties":{"provider":{"description":"deepgram or elevenlabs.","type":"string","enum":["deepgram","elevenlabs"]},"voiceId":{"description":"The voice, as the workspace's voice list names it, such as flux-hannah-en. An imported voice needs the workspace's own key for its voice provider.","type":"string"},"speed":{"description":"0.5 to 1.5. Leave it out for the voice's normal speed.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null},"wordsMode":{"description":"ken_writes: Ken writes each note from instructions and the person's profile. script: your words, with {firstName}-style variables.","type":"string","default":"ken_writes","enum":["ken_writes","script"]},"instructions":{"description":"With ken_writes: what the note should say, up to 1,000 characters. Left blank on a note only send.imessage@1 steps send, Ken writes the app's default iMessage note: a short note that continues the conversation where it stands and asks if they are open to a short call.","type":["string","null"],"default":null},"script":{"description":"With script: the words to speak, up to 900 characters. A reference such as {{writer.text}} is filled in before the note is written.","type":["string","null"],"default":null},"model":{"description":"The model that writes the words: haiku or sonnet. Leave it out (or null) for haiku.","type":["string","null"],"default":null,"enum":["haiku","sonnet",null]},"matchLeadLanguage":{"description":"Speak in the person's language when Kenso knows it. With ken_writes, Ken writes the note in that language. With script, Ken translates your words into it first when it differs from the voice's language (the script is read as written in the voice's language), and the translation is part of the note's cost. An ElevenLabs voice keeps the voice; on Deepgram Ken takes a voice of the same gender in that language, and when there is none keeps the voice and its language.","type":"boolean","default":false}},"required":["provider","voiceId"]},"contactId":{"description":"The person the note is for, a workspace person id. Leave it out for the run's person, the one send.linkedin@1, send.whatsapp@1, send.facebook@1 or send.imessage@1 sends to with to record.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"campaignId":{"description":"The campaign to file the note and its credit charge under. Leave it out for the run's campaign, if it has one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"channel":{"description":"Where the note is sent: \"instagram\" for send.instagram@1, which takes an m4a note (Kenso then makes it as m4a; needs the instagram and linkedin_voice_notes features). Leave it out for LinkedIn, WhatsApp, Facebook or iMessage.","type":["string","null"],"default":null,"enum":["instagram",null]}},"required":["voice"]}},{"type":"ai.website_people@1","key":"ai.website_people","version":1,"kind":"ai","title":"Find people on the website","description":"On a place run (a Google Maps place), reads up to 4 pages of the place's website (home, team, about, contact) and returns the people it names with the emails and phones printed next to them, plus the business's general mailboxes and phones. A chain branch, whose website is a location page (aspendental.com/offices/tx/austin), reads that page and the pages under it, never the chain's home page. Each person is added to (or matched in) the workspace's people with the place's domain as their company. Pass data.find_people's people as known to merge both lists; the result's people carry personId for data.find_email, data.find_phone and place.deliver. Pages from Kenso's web archive are free; each page Kenso reads live and the one AI call cost one scrape credit each (WorkflowScrape). A place with no website costs nothing.","cost":{"free":false,"action":"WorkflowScrape","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"known":{"description":"People Ken already found at the place, usually \"{{people.people}}\" from data.find_people. A website person with the same name is matched to them.","type":["array","null"],"items":{"type":"object","properties":{"name":{"description":"The person's full name.","type":"string"},"title":{"description":"Their job title.","type":["string","null"]},"personId":{"description":"The workspace person id. A person without one is left out.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["name"]},"default":null},"maxPages":{"description":"How many pages of the website to read, 1 to 4, the home page included. Default 4.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":4},"tier":{"description":"AI tier: cheap (default) or balanced.","type":"string","default":"cheap","enum":["cheap","balanced"]}}}},{"type":"browser.run@1","key":"browser.run","version":1,"kind":"action","title":"Browser run","description":"Opens a site in a browser and works the task: reads pages, or fills and submits one form as the inbox owner. It starts at startUrl and stays on the site's domain. With canSubmit it types only the inbox name and email, the identity and the answers you give (fields: up to 30, each a label and its exact value, such as a cover note or a Yes on a screening question), each answer word for word into the field that asks its question; a required field none of them fills ends the run blocked, and the submit click is refused while a text field holds anything else. With canSubmit it may also upload up to 5 Knowledge files you uploaded (files: PDF, DOCX, PNG or JPEG, at most 10 MB each) into the form's file fields; a file that cannot go fails the step before any browser opens, at no charge. With canSubmit the plan first waits in Today for the inbox owner, on approval auto too unless the workspace has the workflows_auto_send_email and workflows_auto_send flags, where auto opens the browser without waiting (as a member's own mailbox only in a workflow that member published). Returns status (done, confirmed, unconfirmed, blocked, out_of_browser_time), the result (matching outputSchema when given), quotes with their URLs, screenshots, the submission (what went into each field and the file that went into each file field) and, for watchDays after a submission, the site's replies arrive as browser.mail_received events. Charged per started browser minute plus model tokens. A failed run (runner error, unknown outcome, plan not approved in time) fails the step with browser_run_failed:<reason> and is not charged; the step's onFailure decides what follows. Test runs are simulated, upload and type nothing, and list the planned answers as the submission's fields. Needs the browser_steps feature.","cost":{"free":false,"action":"BrowserRun","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"browser_steps"}],"inputSchema":{"type":"object","properties":{"task":{"description":"What the browser should do, in plain words: what to find, which form to fill and what to bring back. You can use record fields and results from earlier steps.","type":"string","minLength":1,"maxLength":8000},"startUrl":{"description":"The web address the browser opens first. The browser stays on this site, plus any form page the site sends it to.","type":"string","minLength":8,"maxLength":2048,"pattern":"^https?://.+"},"canSubmit":{"description":"Lets the browser submit one form using the inbox and identity below. Off by default, so the browser only reads the site.","type":"boolean","default":false},"approval":{"description":"Whether the inbox owner approves the plan in Today before the browser opens. Required by default. A run that can submit a form waits for that approval on auto too, as an email on auto waits in Today, unless the workspace is allowed to send emails and forms without approval: then auto opens the browser without waiting, except as a member's own mailbox in a workflow that member did not publish. A read-only run never waits.","type":"string","default":"required","enum":["required","auto"]},"inbox":{"description":"The inbox whose name and email go on the form. By default it's the inbox the Send email step uses for this account, and that inbox's owner approves the plan. You can pick another inbox. Needed when the browser can submit a form.","type":"string","default":"owner","pattern":"^(owner|[0-9]{1,18})$"},"identity":{"description":"Who the browser poses as on a form: job title, phone and company. Company defaults to your workspace name. Ken only ever types these details, the inbox's name and email and the answers below. If a required field asks for anything else, the run stops without submitting.","type":["object","null"],"properties":{"title":{"description":"Job title typed into a form that asks for one.","type":["string","null"],"default":null},"phone":{"description":"Phone number typed into a form that asks for one.","type":["string","null"],"default":null},"company":{"description":"Company typed into a form that asks for one. Defaults to your workspace name.","type":["string","null"],"default":null}},"default":null},"outputSchema":{"description":"The fields the result must have, as a JSON schema. Leave it empty for a free-form result.","type":["object","null"],"default":null},"watchDays":{"description":"Days to watch the inbox for the site's reply after the form goes out, 0 to 30. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14,"minimum":0,"maximum":30},"maxMinutes":{"description":"Browser minutes the run may use, 1 to 10. Default 3. A run that reaches the limit stops there and is charged for the minutes it used.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3,"minimum":1,"maximum":10},"files":{"description":"Files the browser may upload into the form it submits, such as a CV: up to 5 Knowledge files you uploaded (PDF, DOCX, PNG or JPEG, at most 10 MB each), each with a label that tells Ken which is which. Only when the browser can submit a form.","type":["array","null"],"items":{"type":"object","properties":{"fileId":{"description":"The id of a Knowledge file you uploaded.","type":"string","minLength":1,"maxLength":18,"pattern":"^[0-9]{1,18}$"},"label":{"description":"What the file is, such as CV. Ken uses it to tell the files apart and to pick the field each one goes into.","type":"string","minLength":1,"maxLength":80}},"required":["fileId","label"]},"default":null,"maxItems":5},"fields":{"description":"Answers the browser may put on the form it submits, next to the inbox and the identity, such as a cover note and screening answers: up to 30, each a label and a value, 8,000 characters for all values together. Ken types each value word for word into the field that asks its question, or picks the matching option on a choice field, and types nothing else. A required field none of them answers, a consent box included, ends the run without submitting. You can use record fields and results from earlier steps. Only when the browser can submit a form.","type":["array","null"],"items":{"type":"object","properties":{"label":{"description":"What the answer is for, as a form might ask it, such as Cover letter or Are you legally authorized to work in the US. Up to 200 characters.","type":"string","minLength":1,"maxLength":200},"value":{"description":"The exact text Ken types, or the option it picks on a choice field, such as Yes. Up to 4,000 characters.","type":"string","minLength":1,"maxLength":4000}},"required":["label","value"]},"default":null,"maxItems":30}},"required":["task","startUrl"]}},{"type":"campaign.ab_test@1","key":"campaign.ab_test","version":1,"kind":"action","title":"Assign A/B variant","description":"Assigns the lead to one A/B variant (A, B, C or D) of its campaign email sequence, picked the way the send planner picks: at random among the active variants, or by the lead's company when the workspace splits variants by company (then the lead needs a verified email before this step, or the step fails). It is stored so every email in the sequence uses that variant. A lead that already has a variant keeps it. Use it in a campaign workflow before enrollment to test sequence versions against each other; pass variants to limit the choice. The sequence must have the same number of active variants on every step. Returns the variant letter. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"variants":{"description":"Sequence variants to choose from (A, B, C, D). Null uses every active variant of the campaign sequence.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"campaign.add_lead@1","key":"campaign.add_lead","version":1,"kind":"action","title":"Add lead to campaign","description":"Adds one lead to a campaign from the fields you give it, the same way an import does: the campaign's dedupe, the blocklist and do-not-contact apply, a new lead reserves lead credits from the plan, and custom variables merge into the lead's (a key new to the campaign joins its catalog with AI context off). On a person, lead or account run, everything the workflow saved on that record travels with the lead as custom variables, and the customVariables you set win over a saved field with the same name. It writes what POST /v1/campaigns/{campaignId}/contacts writes, without an API key. Works on any run, including a schedule or webhook run about no record: map email, firstName, lastName, title, linkedInUrl, companyName, companyDomain and customVariables from earlier steps or from {{item.*}} inside logic.for_each. With no lead field set it adds nobody (invalid_input); to add the run's own person, use person.add_to_campaign@1. A second run with the same email updates the lead instead of adding it twice. Returns leadId, status (created, updated, skipped or failed), sendable, and reason and message when skipped or failed (duplicate, blocklisted, already_contacted, invalid_email, excluded, validation, other). The campaign must be an open, regular campaign of the workspace: a deleted or unknown one fails with campaign_not_found, a trigger-mode one with campaign_trigger_mode, an archived or completed one with campaign_closed, each parking the run in Needs attention, as the plan's lead limit does (lead_limit). Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign the lead is added to: a regular campaign of the workspace, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"email":{"description":"The lead's email. Required unless the campaign is LinkedIn-only, which takes a LinkedIn profile URL instead.","type":["string","null"],"default":null},"firstName":{"description":"Required, as on the API.","type":["string","null"],"default":null},"lastName":{"description":"Required, as on the API.","type":["string","null"],"default":null},"title":{"description":"The lead's job title.","type":["string","null"],"default":null},"linkedInUrl":{"description":"The lead's LinkedIn profile URL (linkedin.com/in/...).","type":["string","null"],"default":null},"companyName":{"description":"The company's name. companyName or companyDomain is required.","type":["string","null"],"default":null},"companyDomain":{"description":"The company's domain, such as acme.com. companyName or companyDomain is required.","type":["string","null"],"default":null},"emailValidity":{"description":"Optional mailbox verdict, as on the API: safe for an email you already verified (qualified on import in a campaign without AI qualification, spending one contact allowance), or verified, risky, catch_all, invalid, unknown. Omitted keeps a stored verdict on an existing email.","type":["string","null"],"default":null},"customVariables":{"description":"Custom variables for the lead, at most 50 keys, such as {\"ph_product\": \"{{item.title}}\"}. Keys are normalized as CSV import columns are; values merge into the lead's existing variables, and a null or empty value clears that key. A key new to the campaign joins its custom-variable catalog with AI context off. A number or true/false is written as text.","type":["object","null"],"default":null}},"required":["campaignId"]}},{"type":"campaign.add_person@1","key":"campaign.add_person","version":1,"kind":"action","title":"Add engager to campaign","description":"Adds the run's person to a campaign as a lead, the way a LinkedIn import does: the campaign's dedupe and do-not-contact apply, and each new lead reserves lead credits from the plan. Runs after trigger.linkedin_post_engagement@2, whose engagement it writes to the lead's variables: linkedin_source (post_reaction, post_comment, post_reply or post_author), linkedin_source_url (the post), linkedin_headline, linkedin_comment and linkedin_post_text (the first 1,000 characters of the post); the last two only when the post is the workspace's own ({{trigger.ownPost}}), never from a third party's pasted post. A person a topic or a watched profile found ({{trigger.topic}} is set) gets linkedin_topic, linkedin_topic_post and linkedin_topic_comment instead: context for the AI only, which no message or email can insert. Everything the workflow saved on the person, such as a score or a written opener, travels with the new lead as custom variables. Returns leadId, created, and reason when created is false (already_in_campaign, not_imported or simulated). The campaign must be an open, regular campaign of the workspace: a deleted one fails with campaign_not_found, a trigger-mode one with campaign_trigger_mode, an archived or completed one with campaign_closed, each parking the run in Needs attention; a run another trigger started fails with no_linkedin_engager; the plan's lead limit parks the run in Needs attention (lead_limit). Needs the LinkedIn signals feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign the person is added to as a lead: a regular campaign of the workspace, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["campaignId"]}},{"type":"campaign.ai_segments@1","key":"campaign.ai_segments","version":1,"kind":"ai","title":"Assign AI segment","description":"Assigns the lead to one of its campaign's segments with an LLM, using the segment names and descriptions set on the campaign and the lead's person, company and website data. Use it in a campaign workflow after enrichment and before personalization, when the campaign has two or more AI segments. Leads are classified in batches of up to 250 per model call. Returns the segment id, its name and a one-sentence reason, and writes the assignment to the lead. Costs one WorkflowAiSegments credit unit per lead assigned; a campaign with a single segment assigns it without a model call and costs nothing.","cost":{"free":false,"action":"WorkflowAiSegments","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"tier":{"description":"AI tier: cheap, balanced or smart. The campaign's segmentation model setting picks the model.","type":"string","default":"cheap"}}}},{"type":"campaign.enroll@1","key":"campaign.enroll","version":1,"kind":"action","title":"Enroll in campaign","description":"Campaign workflows only. Hands the lead to the campaign's send path: checks that the campaign would send it (safe email, active segment, the copy it needs, campaign sending) and asks the Kenso sequencer to plan it today. This step never sends an email itself, and the campaign also sends ready leads on its own schedule. Returns enrolled and a reason when the lead was not enrolled. With waitForFirstSend the run waits up to 14 days for the lead's first email (not when it already went out). Use it last, after protect, sequence and review. Free here: sends are priced by the campaign's own send path. Never retried automatically. With targetCampaignId (workspaces with sequences with conditions) the step moves the lead instead: it stops the lead's sequence in this campaign, adds the lead to that campaign (the copy the inbox's enroll in another campaign makes, so dedupe, do not contact and the blocklist apply) and enrolls it there; the output adds movedToCampaignId and movedLeadId. A lead that cannot go there (no verified email, an excluded country) is not enrolled, with the reason, and its sequence here stays stopped. Running it again after a failure does not add the lead twice.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"waitForFirstSend":{"description":"Wait until the campaign sends the lead's first email (up to 14 days) before the next step. Default false. Ignored with targetCampaignId.","type":"boolean","default":false},"targetCampaignId":{"description":"Move the lead to this campaign instead: another campaign of the workspace (needs sequences with conditions). Its sequence in this campaign stops, then it is added to that campaign and enrolled there. Left out: enroll in this campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"campaign.manual_segments@1","key":"campaign.manual_segments","version":1,"kind":"action","title":"Assign segment by rules","description":"Assigns the lead to the first of its campaign's manual segments whose filter rules match the lead (the same rules the campaign's segment filter applies), in segment order. Use it in a campaign workflow when segments are defined by rules such as job title, industry or company size rather than by AI. A lead already in a non-default segment keeps it unless overwriteExisting is true. Returns the segment id and name, or nulls when no rules match. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"overwriteExisting":{"description":"When true, a lead already in a non-default segment moves to the first matching segment. When false it keeps its segment.","type":"boolean","default":false}}}},{"type":"campaign.placement_test@1","key":"campaign.placement_test","version":1,"kind":"action","title":"Run inbox placement test","description":"Starts an inbox placement test (seed inboxes) for the campaign's sending domain with the campaign's own email copy, then waits up to 2 days for the result. It runs once per campaign, not per lead: when a test for the campaign is running or finished in the last 7 days, every lead's run reuses it. Use it before a launch or a promote step to gate sending on deliverability. Returns the test id, its status and the inbox rate (0 to 1). Free in Kenso credits; never retried automatically.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object"}},{"type":"campaign.promote@1","key":"campaign.promote","version":1,"kind":"action","title":"Promote to Accounts","description":"Promote to Accounts: turns the record's company (a lead of the campaign, or a person) into an account you work 1:1. Finds the account by the company or work-email domain, or creates it at the given stage (warming by default; Warming accounts are skipped by campaigns that protect account plays), then adds the person as an engaged, priority 1 member. For a lead it is the inbox's Promote to Accounts: an existing account moves forward to the stage, and every campaign sequence at the company stops, in every campaign of the workspace (not an unsubscribe: the person can still reply), so the campaigns stop emailing the company you now work 1:1. If that stop fails, the step fails and retries before any later step runs. Running it again reuses the same account. Returns accountId, created, and for a lead sequenceStop and sequencesStopped. Use it after a qualification branch for hot leads. Free: it queues no account research, so add ai.research after it for a research brief.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"Stage of the promoted account: researching, warming (default) or engaged. A new account starts at it. For a lead, an existing account moves forward to it (an active play never moves back, and a stage a person pinned stays); a person's existing account keeps its stage.","type":"string","default":"warming"}}}},{"type":"campaign.protect@1","key":"campaign.protect","version":1,"kind":"action","title":"Skip people in account plays","description":"Campaign workflows only (the record is a lead of the campaign). Checks whether the lead is a member of, or (with wholeCompany) works at, an account in an active 1:1 play: stage Warming, Engaged or Meeting booked. Returns protected = true with a reason naming the account, or protected = false. It changes nothing itself: guard the steps after it with when: \"{{protect.protected}} == false\". It does not stop the campaign's own schedule from mailing a ready lead until account-play suppression ships. Put it first in every campaign workflow, before qualification, so a protected lead costs nothing. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"wholeCompany":{"description":"Also skip the lead when their company (email or company domain) is an active account, not only when they are a member of one. Default true.","type":"boolean","default":true}}}},{"type":"campaign.refill@1","key":"campaign.refill","version":1,"kind":"action","title":"Refill from Search","description":"Campaign workflows only, on a schedule (the Keep this campaign full template runs it every hour). Keeps the campaign full: counts the ready leads still waiting for their first email (on a LinkedIn-only campaign, for their connection request) and, when they drop below minActiveLeads (default 3 days of the campaign's daily send capacity, at least 50), imports up to refillSize (default 1 day of capacity) net-new Kenso Search people matching filters into the campaign. Duplicates, the workspace's duplicate rules, the recently-emailed window and the blocklist apply as on any Search import, and the new leads go through the campaign's own pipeline and review before anything is sent; the step never sends. It imports nothing while an import into the campaign is still running or the last refill's leads are still being processed, while the campaign is not sending, or past maxLeadsPerDay (default 500), maxLeadsPerWeek (default 2000, last 7 days), monthlyLeadBudget (default 25% of the plan's monthly leads) or the plan's lead limit. After two refills in a row found nobody new, it turns the workflow off with reason exhausted (turn it back on, or edit the filters and publish, to try again); a deleted or archived campaign turns it off too. Returns outcome, activeLeads, threshold, requested, importId and the leads added today, this week and this month. Free in workflow credits: each imported lead takes one lead credit inside the import, like any Search import. Publishing it needs the workspace admin role (or Kenso staff, who must fill requestedBy), plus Search view, Campaigns edit and Import.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"campaign_lead_refill"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The Kenso Search people filters to import from, the peopleFilters shape of POST /v1/search/imports (copy them from a saved search). Required; publish refuses an empty object.","type":["object","null"],"default":null},"savedSearchId":{"description":"The saved search the filters were copied from. A label only: the step imports with filters, never re-reads the saved search.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"savedSearchName":{"description":"The saved search's name, shown with the step. A label only.","type":["string","null"],"default":null,"maxLength":200},"minActiveLeads":{"description":"Refill when the campaign's active leads drop below this. Leave it out for 3 days of the campaign's daily send capacity (at least 50).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"refillSize":{"description":"Leads to ask Kenso Search for in one refill, 1 to 5000. Leave it out for 1 day of the campaign's daily send capacity (at least 25).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"maxLeadsPerDay":{"description":"Most leads refills add in one UTC day. Default 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":500},"maxLeadsPerWeek":{"description":"Most leads refills add in the last 7 days. Default 2000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":2000},"monthlyLeadBudget":{"description":"Most leads refills add in one UTC calendar month; no import goes past it. Leave it out for 25% of the plan's monthly lead allowance (an unlimited plan must set it).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"requestedBy":{"description":"Who asked for refill on this campaign, such as \"Jane Doe (client) on the 2026-10-19 call\". Kenso staff must set it when they turn it on for a client.","type":["string","null"],"default":null,"maxLength":300}}}},{"type":"campaign.review@1","key":"campaign.review","version":1,"kind":"human","title":"Approve in batches","description":"Campaign workflows only. A person approves the lead, in batches, before the next steps run; the step waits up to 30 days for the decision. With campaign batches on for the workspace, the lead joins the campaign's open batch for this step (batchSize leads: 25, 50 or 100, default 50; a full batch closes and the next lead opens the next one), and while the workflow has this step, live or turned off, the campaign sends no lead its first email until the lead's batch is approved (leads it already emailed keep their follow-ups). A person approves the whole batch after reading Ken's samples (samples: \"5\", \"10\" or \"all\"), and the step returns approved = true with batchId and approvedBy (the approver's name). clientApproval is saved on the batch for the external approval link, which is not live yet: the team approves every batch until it is. Without campaign batches the campaign's own schedule does not wait for the step, and the campaign's external approval draft decides for every lead: no draft passes at once with approved = true and skipped = true; an approved draft passes; a draft sent back with changes gives approved = false. Use it after sequence and before enroll, and guard the next steps with when: \"{{review.approved}} == true\". Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"batchSize":{"description":"Leads per batch: 25, 50 (default) or 100. A full batch closes and the next lead opens the next batch.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"enum":[25,50,100]},"samples":{"description":"How many samples Ken shows first: \"5\" (default), \"10\" or \"all\" (every email in the batch).","type":"string","default":"5","enum":["5","10","all"]},"clientApproval":{"description":"Send the batch to your client to approve on the external approval link. Default false. Saved on the batch; the link is not live yet, so the team approves until it is.","type":"boolean","default":false}}}},{"type":"campaign.segment@1","key":"campaign.segment","version":1,"kind":"ai","title":"Assign segment","description":"Puts the lead in one of its campaign's segments the way the campaign's Settings do: the rule segments first, top to bottom, and the first whose rules match the lead gets it; if none matches and the campaign has AI segments, the AI picks the one whose description fits the lead best (the default segment included); otherwise the lead stays in the default segment. Use it in a campaign workflow after enrichment and before personalization, in place of campaign.manual_segments and campaign.ai_segments. A lead already in a non-default segment keeps it unless overwriteExisting is true. Returns the segment id and name, assignedBy (rules, ai, kept, or none when no rule matched and the campaign has no AI segment besides the default) and the AI's reason. Free for a lead placed by rules, kept, or assigned without a model call (a campaign with one AI segment candidate); one WorkflowAiSegments credit unit for a lead the AI places. Leads are collected for up to 15 minutes and run in batches of up to 250, so the AI classifies up to 250 per model call.","cost":{"free":false,"action":"WorkflowAiSegments","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"overwriteExisting":{"description":"When true, a lead already in a non-default segment is placed again: rules first, then the AI, else the default segment. When false it keeps its segment, and the step is free for it.","type":"boolean","default":false}}}},{"type":"campaign.send_step@1","key":"campaign.send_step","version":1,"kind":"action","title":"Send campaign email","description":"Campaign workflows with sequences with conditions only (the record is a lead of the campaign). Releases one email of the campaign's sequence with conditions (sequenceStepId, written when the campaign launches) to the campaign's own sender: the email goes out from the campaign's mailboxes on its schedule, within its daily limits, with its tracking and personalization, as any campaign email. The step never sends anything itself; it waits, with no time limit, until the email is sent, then returns status sent, sequenceStepId and sentAt. A lead the campaign cannot email (unsubscribed, replied, bounced, stopped) is never sent the email, and the run ends once the campaign completes or is deleted, or the lead leaves it. Launch adds it for every email of the tree; do not add it by hand. Free here: sends are priced by the campaign's own send path. Never retried automatically.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"sequence_conditions"}],"inputSchema":{"type":"object","properties":{"sequenceStepId":{"description":"The email_sequence_step the campaign sends: a step of the campaign's sequence with conditions, written at launch.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["sequenceStepId"]}},{"type":"campaign.sequence@1","key":"campaign.sequence","version":1,"kind":"ai","title":"Write personalized sequence","description":"Campaign workflows only. Writes the lead's personalized copy for every step of the campaign's email sequence with the campaign's own prompts (the personalization stage of the campaign pipeline). Returns steps (how many sequence steps have copy) and generated (false when the lead already had copy). Leads are batched (up to 400 per call, flushed within 12 hours and nightly). Use it after protect and before review and enroll. A lead that already has copy is not written again, and a campaign without personalization prompts has nothing to write (generated = false). The copy is charged as AI personalization at the campaign's normal price, like the campaign pipeline; the step adds no charge of its own, but that spend counts toward the workflow's spend limits, which hold the step before it writes. Estimates show that price as a line charged by the campaign (variable when the estimate has no workflow, so no campaign). A workspace without credits fails with a setup error.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"tier":{"description":"AI tier the copy is written on: cheap, balanced (default) or smart. The campaign's own personalization settings pick the model today.","type":"string","default":"balanced"}}}},{"type":"campaign.skip_gateways@1","key":"campaign.skip_gateways","version":1,"kind":"action","title":"Skip gateways and email providers","description":"Campaign workflows only (the record is a lead of the campaign). Checks the email the campaign would send the lead (its first Safe address) for the security gateway in front of its domain (Proofpoint, Mimecast, ...) and its email provider (Google Workspace, Gmail, Microsoft 365, ...). When the gateway is in gateways or the provider is in emailProviders, it stops the campaign's email to the lead and cancels its queued emails: email only, so the lead's LinkedIn and call steps go on, and the run goes on to the next step. Returns skipped, gateway, emailProvider, matched (gateway or email_provider; a gateway match wins), checked and reason. While the domain is still being checked (gateways ticked: the gateway is pending; only providers ticked: the provider is pending), the step waits and tries again every 5 minutes, up to 24 hours, then passes with checked = false. A lead with no email the campaign would send to passes with checked = false. Publishing the workflow also applies newly ticked values to the leads already in the campaign, and unticking a value lets their email go out again. Put it right after protect, before qualification, so a skipped lead costs nothing; guard email-only paid steps with when: \"{{skip_gateways.skipped}} == false\". Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"gateways":{"description":"Security gateway slugs to skip, such as proofpoint, mimecast, barracuda and cisco_secure_email. Default none.","type":["array","null"],"items":{"type":"string"},"default":null},"emailProviders":{"description":"Email provider (mailbox host) slugs to skip, such as gmail, google_workspace or microsoft_365. Default none.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"clay.enrich@1","key":"clay.enrich","version":1,"kind":"action","title":"Enrich with Clay","description":"Sends the record to one of your Clay tables through its webhook source and waits for Clay to send the enriched row back. In Clay, add an HTTP API enrichment column to that table: method POST, URL the row's kenCallbackUrl column, body a JSON object of the columns you want back, and set it to run after a delay of at least 10 seconds. Each row Kenso sends also carries kenIdempotencyKey; turn on Clay's auto-dedupe on that column so a retried send never makes a second row. When Clay posts back, the step succeeds with status enriched and the posted object under fields; later steps read {{<step>.fields.<column>}}. If nothing arrives within waitMinutes (default 60) the step fails; add onFailure: \"continue\" to let the run go on without the fields. Only a 429 from Clay is retried: any other failure after the row was sent could mean Clay stored it, so it is not sent again. Free: you pay Clay for the enrichment.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"webhookUrl":{"description":"The Clay table's webhook source URL (Clay > table > Sources > Webhook). Store it as a workspace secret and reference it: {{secrets.CLAY_WEBHOOK_URL}}.","type":"string"},"fields":{"description":"The row to send: an object whose top-level keys become Clay columns. Values can reference the record, e.g. {\"email\": \"{{lead.email}}\", \"domain\": \"{{lead.companyDomain}}\"}. The keys kenCallbackUrl and kenIdempotencyKey are reserved.","type":"object"},"authToken":{"description":"The webhook source's auth token, sent as x-clay-webhook-auth. Store it as a secret: {{secrets.CLAY_WEBHOOK_TOKEN}}.","type":["string","null"],"default":null},"waitMinutes":{"description":"How long to wait for Clay's callback, 1 to 10080 minutes (7 days). Default 60. After that the step fails; add onFailure: \"continue\" to go on without the fields.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":60}},"required":["webhookUrl","fields"]}},{"type":"code.run@1","key":"code.run","version":1,"kind":"code","title":"Run code","description":"Runs your JavaScript or Python on each record inside an isolated sandbox. The code gets `inputs` (the object you build from references) and `ctx`, returns a JSON object, and may call `ctx.skip(reason)` to end the run as skipped. console.log and print lines land in the step log (50 lines per record). Preinstalled: lodash, date-fns, zod (JavaScript); requests, python-dateutil (Python). No network unless allowedHosts lists the hosts (HTTPS only). Secrets are environment variables named in `secrets`, except a header-only secret: it never enters the sandbox, and the network adds it as its header on requests to its host, which allowedHosts must list. Limits: 30 s and 256 MB per record, 256 KB output. Free. A record whose code may have run is never run again: it fails code_unknown_outcome, so check the target before retrying it by hand. In a test run, code with allowedHosts is simulated (output {}) unless the test names the step in liveSteps. Needs the workflows_code feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_code"}],"inputSchema":{"type":"object","properties":{"language":{"description":"javascript or python.","type":"string","enum":["javascript","python"]},"code":{"description":"JavaScript: export default function run(inputs, ctx). Python: def run(inputs, ctx). Return a JSON object; ctx.skip('reason') ends the run as skipped. Never rendered: put references in inputs. At most 65,536 characters.","type":"string","minLength":1,"maxLength":65536},"inputs":{"description":"The object the code receives as inputs. Reference record fields and earlier steps with {{...}} here.","type":["object","null"],"default":null},"outputSchema":{"description":"JSON schema (type object) the returned object must match. Leave it out to accept any object.","type":["object","null"],"default":null},"allowedHosts":{"description":"Hostnames the code may reach over HTTPS, at most 20 (api.example.com, or *.example.com for its subdomains). Leave it out for no network. Kenso's own domains, IP addresses and localhost are refused.","type":["array","null"],"items":{"type":"string","pattern":"^(\\*\\.)?([a-z0-9-]+\\.)+[a-z]{2,}$"},"default":null,"maxItems":20},"secrets":{"description":"Workspace secret names (2 to 64 uppercase letters, digits and _, starting with a letter), at most 10, given to the code as environment variables (process.env.NAME, os.environ['NAME']). Each must exist to publish.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10}},"required":["language","code"]}},{"type":"connection.group@1","key":"connection.group","version":1,"kind":"ai","title":"Sort connection","description":"Sorts the run's person, an imported LinkedIn connection, into buyer, partner or other with one cheap-tier model call over the workspace's ideal customer profile and every role the person holds or held (title, headline, ICP score, current and past companies from their connection rows on every seat). A buyer gets a tier: 1 when the person can sign or decide at an ICP-fit company (a current founder or executive role there, or the model says so), else 2. A partner gets its intro targets: the ICP-fit companies among their roles. Every person gets their warm paths: current advisor, board or investor seats at ICP-fit companies. Ken's own relationship suggestion wins: lead makes a buyer; any other suggestion keeps the person out of buyer, and an other then carries the suggestion's kind and reason. The group, reason and tier are written onto every connection row of the person in the workspace, and the role fits replace the person's earlier ones. A person sorted within the last 90 days with no new current company is copied at no charge. Needs LinkedIn connections enrich (linkedin_connections_enrich). Returns group, reasonKind, tier, warmPaths, introTargets and status (grouped, reused or failed). Charged once per answer (WorkflowAiQualify).","cost":{"free":false,"action":"WorkflowAiQualify","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"reason":{"description":"Why the workflow sorts the connection. Shown in the run log.","type":["string","null"],"default":null}}}},{"type":"crm.create_opportunity@1","key":"crm.create_opportunity","version":1,"kind":"action","title":"Create CRM opportunity","description":"Opens the deal for the run's account in the workspace's connected CRM. When Kenso's deal sync is on and the deal goes to its pipeline, Kenso keeps one deal per opportunity: if the account's open opportunity already has a CRM deal, the step returns that deal with created false and writes nothing; otherwise it creates the deal and links it to that opportunity, so the deal sync never opens a second one. The deal observer then copies the step's stage, name and amount into the opportunity. With no open opportunity, deal sync off or another pipeline, every run creates a new deal: when the run can repeat, put it after a crm.lookup@1 on deal or a logic.branch@1. stage is the CRM's stage id, required: a HubSpot dealstage id or a Salesforce StageName, as listed by the CRM connection's pipelines (GET /v1/crm-connections/{connectionId}/pipelines); a wrong id comes back as crm_rejected. pipelineId defaults to the pipeline in the workspace's CRM settings. name defaults to the run record's company name (account.name or lead.companyName) unless fields sets the deal name. The deal is associated with the CRM company and contact Kenso has synced for the run's record (its account or company domain, its person or email), or the companyExternalId and contactExternalId you send; none found means a deal with no company or contact. amount, closeDate (yyyy-MM-dd; Salesforce defaults it to 30 days out) and fields (Kenso catalog keys such as opportunity.next_step, or raw CRM api names) set the rest; a fields value that is null or blank for the run's record is skipped and listed in fieldsSkipped. A failure while the CRM creates the deal is not retried: it goes to Needs attention as crm_unknown_outcome, so check the CRM for the deal before re-running. A rate limit (Kenso's or the CRM's) or an outage before the create also goes to Needs attention, and re-running then is safe because nothing was written. Returns externalId, externalUrl, fieldsSkipped, created and opportunityId (the Kenso opportunity the deal is linked to, else null). Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"stage":{"description":"The CRM's stage id for the new deal: a HubSpot dealstage id or a Salesforce StageName, from the CRM connection's pipelines (GET /v1/crm-connections/{connectionId}/pipelines).","type":"string"},"name":{"description":"The deal name. Defaults to a deal name set in fields, else the run record's company name (account.name or lead.companyName).","type":["string","null"],"default":null},"amount":{"description":"The deal amount, zero or more, in the CRM account's currency.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"closeDate":{"description":"The expected close date, yyyy-MM-dd. Salesforce defaults it to 30 days from today.","type":["string","null"],"format":"date","default":null},"pipelineId":{"description":"The CRM pipeline id. Defaults to the pipeline chosen in the workspace's CRM settings, the one Kenso's deal sync uses.","type":["string","null"],"default":null},"companyExternalId":{"description":"The CRM company to associate the deal with. Defaults to the CRM company Kenso has synced for the run record's account or company domain; none means no company.","type":["string","null"],"default":null},"contactExternalId":{"description":"The CRM contact to associate the deal with. Defaults to the CRM contact Kenso has synced for the run record's person or email; none means no contact.","type":["string","null"],"default":null},"fields":{"description":"Extra deal fields. Keys are Kenso catalog keys (opportunity.next_step, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. stage, name, pipelineId, amount and closeDate win over the same field here. A value that is null or blank for the run's record is skipped and listed in fieldsSkipped.","type":["object","null"],"default":null}},"required":["stage"]}},{"type":"crm.lookup@1","key":"crm.lookup","version":1,"kind":"action","title":"Look up CRM record","description":"Looks up one company, contact or deal in the workspace's connected CRM and returns it. Find a contact by email, a company by domain, or any record by its CRM externalId (the only way to find a deal); send at most one of the three. With none, a contact lookup uses the run record's email (person.email or lead.email) and a company lookup the record's domain (account.primaryDomain or lead.companyDomain). Kenso checks the CRM records it already synced first, then asks the CRM. Returns found, externalId, externalUrl, fields (the record's fields by CRM api name, plus $email, $name, $domain and $owner_id) and the Kenso accountId and personId the record is linked to. found=false is a success, not a failure: branch on {{lookup.found}}. Writes nothing to the CRM. Needs a connected CRM and the ingestion feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to look up: company, contact or deal.","type":"string"},"externalId":{"description":"The CRM record id. The only key a deal lookup accepts.","type":["string","null"],"default":null},"email":{"description":"Contact email. Omit every key and a contact lookup uses the run record's email (person.email or lead.email).","type":["string","null"],"default":null},"domain":{"description":"Company domain, for example acme.com. Omit every key and a company lookup uses the run record's domain (account.primaryDomain or lead.companyDomain).","type":["string","null"],"default":null}},"required":["objectType"]}},{"type":"crm.update@1","key":"crm.update","version":1,"kind":"action","title":"Update CRM record","description":"Updates fields on one company, contact or deal that already exists in the workspace's connected CRM; it never creates a record (use crm.upsert@1 for that). Name the record with externalId (the only key for a deal, for example {{lookup.externalId}}), a contact's email or a company's domain; with none, Kenso updates the CRM record it has synced for the run's record: the person's or lead's contact, the account's or lead's company, or a person's company by its domain. A record Kenso has not synced fails with crm_not_found: run crm.upsert@1 first. fields holds the values to write, at least one: Kenso catalog keys such as person.title or opportunity.amount, translated through the workspace's field mappings (Settings > Integrations > CRM > Field mappings), or raw CRM api names. A Kenso key with no mapping fails the step with field_not_mapped, unless skipUnmapped is true: then it is left out. A value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped, as is a Kenso field (ken.*) the CRM does not have yet: Kenso adds its fields to the CRM when sync is turned on for the object. onlyWhenBlank lists fields keys to write only where the CRM record has no value yet; Kenso reads the record first and lists each value it kept in fieldsKept. When every value already matches what Kenso last wrote and what the CRM last showed, or every value was skipped or kept, the step writes nothing and returns changed=false. Returns externalId, externalUrl, changed, fieldsSkipped and fieldsKept. Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to update: company, contact or deal.","type":"string"},"fields":{"description":"Values to write, at least one. Keys are Kenso catalog keys (person.title, account.name, opportunity.amount, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. Values are strings, numbers or booleans; a value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped.","type":"object"},"externalId":{"description":"The CRM record id to update, for example {{lookup.externalId}}. The only key a deal update accepts.","type":["string","null"],"default":null},"email":{"description":"Contacts only: the email of the contact to update. Kenso's synced CRM records first, then the CRM's search.","type":["string","null"],"default":null},"domain":{"description":"Companies only: the domain of the company to update, for example acme.com. Kenso's synced CRM records first, then the CRM's search.","type":["string","null"],"default":null},"onlyWhenBlank":{"description":"fields keys, as written, to write only where the CRM record has no value yet: Kenso reads the record from the CRM first, keeps a value it already has and lists that key in fieldsKept. Each must be a fields key. Omit to write every value.","type":["array","null"],"items":{"type":"string"},"default":null},"skipUnmapped":{"description":"True: a Kenso catalog key with no enabled Ken-to-CRM field mapping is left out of the write and listed in fieldsSkipped, instead of failing the step with field_not_mapped, so one workflow writes whichever fields each CRM maps. Default false.","type":"boolean","default":false}},"required":["objectType","fields"]}},{"type":"crm.upsert@1","key":"crm.upsert","version":1,"kind":"action","title":"Create or update CRM record","description":"Creates or updates one company or contact in the workspace's connected CRM. A company is matched by domain and a contact by email, by default the run record's (account.primaryDomain or lead.companyDomain; person.email or lead.email); send externalId to update one known record instead, for example {{lookup.externalId}}. fields holds the values to write: Kenso catalog keys such as person.title or account.name, translated through the workspace's field mappings (Settings > Integrations > CRM > Field mappings; only mappings Kenso writes, direction ken or both, count: account.industry is CRM-owned by default), or raw CRM api names. A value that is null or blank for the run's record (a lead with no last name) is skipped, never written as a clear, and listed in fieldsSkipped. The record's own contact also gets the record's first and last name when those are mapped and Kenso has not synced that contact yet. A re-run updates the record an earlier run wrote (Kenso's synced row first, then the CRM's match by key) instead of creating a duplicate. associateCompany (the record's own contact, default true) links the contact to the CRM company with the record's company domain when the CRM has one; it never creates a company. Returns externalId, externalUrl, created, objectType and fieldsSkipped. Needs a connected CRM and the ingestion and crm_sync features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"},{"kind":"flag","key":"crm_sync"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"What to write: company or contact.","type":"string"},"externalId":{"description":"The CRM record id to update. When set, email and domain are not used to find the record.","type":["string","null"],"default":null},"email":{"description":"Contact email, the contact's upsert key. Defaults to the run record's email (person.email or lead.email).","type":["string","null"],"default":null},"domain":{"description":"Company domain, the company's upsert key, for example acme.com. Defaults to the run record's domain (account.primaryDomain or lead.companyDomain).","type":["string","null"],"default":null},"fields":{"description":"Values to write. Keys are Kenso catalog keys (person.title, account.name, ...), translated through the workspace's Ken-to-CRM field mappings, or raw CRM api names. Values are strings, numbers or booleans; a value that is null or blank for the run's record is skipped, never written as a clear, and listed in fieldsSkipped.","type":["object","null"],"default":null},"associateCompany":{"description":"Contacts only: associate the contact with the CRM company that has the record's company domain, when the CRM has one. Never creates a company. Default true.","type":"boolean","default":true}},"required":["objectType"]}},{"type":"data.apify_actor@1","key":"data.apify_actor","version":1,"kind":"data","title":"Run an Apify actor","description":"Runs an Apify Store actor (a scraper such as aitorsm/eventbrite or maximedupre/linkedin-events) on the workspace's own Apify API token, waits for the run to finish, and returns its dataset items. It returns up to maxItems of them as items. Set the actor's input as its Input tab in Apify Console shows it; relativeDates sets date inputs relative to the run day, so a weekly run always searches ahead. The run bills the workspace's Apify account, never Kenso's, and Kenso charges no credits. Needs an Apify API token saved under Settings > Integrations > Apify: without one the step fails missing_key. A rejected token fails invalid_key, an account out of credits insufficient_credits, a run that outlives timeoutSecs timeout, and a run that fails run_failed. It is never started twice for one step, so a failed run waits for the next schedule. In a test run it is simulated and returns the example. Use data.suggest_events@1 after it to turn event items into suggested events.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"apify"}],"inputSchema":{"type":"object","properties":{"actorId":{"description":"The Apify Store actor to run: username/actor-name as the Store shows it (aitorsm/eventbrite), username~actor-name, or the actor's id.","type":"string","minLength":1,"maxLength":201},"input":{"description":"The actor's input, as its Input tab in Apify Console shows it in JSON. Leave it out to run with the actor's defaults.","type":["object","null"],"default":null},"relativeDates":{"description":"Input properties to set to a date relative to the run's day (UTC, YYYY-MM-DD): the property name, then the days from today, e.g. {\"startDate\": 1, \"endDate\": 90}. Each overwrites the same property in input. -366 to 366.","type":["object","null"],"additionalProperties":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"maxItems":{"description":"The most dataset items to read, 1 to 200. Also passed to Apify as the run's maxItems, which caps what a pay-per-result actor charges. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50},"timeoutSecs":{"description":"How long the run may take, 30 to 600 seconds. Apify stops it then, and the step fails timeout. Default 300.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":300},"fields":{"description":"Dataset fields to keep in the output, at most 50. Leave it out to keep every field.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":50},"maxChargeUsd":{"description":"The most the run may charge for a pay-per-event actor, in US dollars, 0.01 to 100 (Apify's maxTotalChargeUsd). Leave it out for the actor's own limit.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null}},"required":["actorId"]}},{"type":"data.check_whatsapp@1","key":"data.check_whatsapp","version":1,"kind":"data","title":"Check WhatsApp","description":"Checks whether the run's person is on WhatsApp, using only the numbers Kenso already has for them: pair it with data.find_phone@1 to find a number first. Set personId to check another workspace person. Ken asks WhatsApp through the cache, else through the account's sender WhatsApp account inside its daily check budget. Returns onWhatsApp: \"true\", \"false\" or \"unknown\", and reason: cached or checked when it knows, else no_person, no_phone, opted_out, no_sender (no connected WhatsApp account), held (the check budget is used up, or the account that asks is paused; try later) or failed; phone is the number that answered. Set from to check through one WhatsApp account. A paused account is still the one that asks: the step does not move to another account and does not fail, it answers unknown with reason held (a cached answer still comes back), except under the automatic low reply rate pause, which still checks. Needs the whatsapp feature. Free. In a test run the step is simulated.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"whatsapp"}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Check this workspace person instead of the run's own lead or person: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"from":{"description":"Check through this WhatsApp account of the workspace. Left out, or not a connected account: the person's account's Sends from WhatsApp account, else its owner's, else the workspace's first connected one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.enrich@1","key":"data.enrich","version":1,"kind":"data","title":"Enrich","description":"Looks up the run's record in Kenso Search: the company by its domain, and for a person or lead also the person by LinkedIn URL. Use it to fill firmographics (industry, headcount, location, funding) and the person's current title and seniority before qualifying or writing copy. Returns company, person and found. Costs one enrich credit when Kenso Search has the company or the person; nothing when it has neither. With include [\"technologies\"] it also returns the company's technologies (name, category, first and last detected) from the workspace's own BuiltWith key, which costs Kenso credits nothing and one BuiltWith credit per lookup. With include [\"brand\"] it also returns the company's brand (name, description, logos, colors, fonts) from the workspace's own Context.dev key, which costs Kenso credits nothing and up to 20 Context.dev credits per company (10 for the brand, 10 for the fonts). With include [\"crunchbase\"] it also returns the company's Crunchbase profile (funding total, latest round type, amount and date, funding stage, investors, headcount range, headquarters, categories, founding date) from the workspace's own Crunchbase key, which costs Kenso credits nothing; fields outside the workspace's Crunchbase package come back empty. Until the provider is turned on for the workspace and a working key is connected, the run waits in Needs attention. When the workspace has its own MoltSets key, a person or lead is looked up there first (by LinkedIn URL, else name and company), which costs Kenso credits nothing and one MoltSets record; a miss falls back to Kenso Search. source says which one answered.","cost":{"free":false,"action":"WorkflowEnrich","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"fields":{"description":"Kenso Search fields to keep, e.g. [\"industry\", \"employeesCount\", \"headline\"]. Omit to return every field.","type":["array","null"],"items":{"type":"string"}},"include":{"description":"Extra data to add. \"technologies\": the company's technologies from the workspace's own BuiltWith key. \"brand\": the company's logos, colors and fonts from the workspace's own Context.dev key. \"crunchbase\": the company's funding, investors, headcount, headquarters and categories from the workspace's own Crunchbase key. Connect each key in Settings > Integrations.","type":["array","null"],"items":{"type":"string","pattern":"^(technologies|brand|crunchbase)$"},"default":null}}}},{"type":"data.find_email@1","key":"data.find_email","version":1,"kind":"data","title":"Find email","description":"Finds the work email of the run's person or lead with a waterfall: the record's own email and Kenso's database first, then Kenso's cached mail check of the company domain (a domain that cannot receive mail ends the search with not_found), then a pattern guess (first.last@domain and similar), then the paid finders LeadMagic and Findymail, the workspace's own keys first (Prospeo only when providers lists it). Hunter, Lusha, People Data Labs, Dropcontact, RocketReach, Icypeas, Enrow, Apollo, Datagma, Snov.io, ZoomInfo, Cognism and FullEnrich also join that group, but only when the workspace saved a working key for them. Every candidate is verified and the waterfall stops at the first verified email. Use it before a send step on records without an email; it needs the person's first and last name and the company domain (or a LinkedIn URL Kenso Search can resolve). Returns email, status (verified, catch_all, not_found, or unverified when acceptUnverified is on and no verifier is available), source and the stages tried. A lead that already has a verified email when the step runs gets status already_has_email with that email, and no stage runs. Costs one find-email credit only when it returns an email it found; nothing when it finds none, nothing for the lead's own email, nothing when the workspace's own provider key found it, and nothing for an email from Kenso's database whose verdict is recent (verifiedAt set). On a place run, set personId (from data.find_people or ai.website_people) to find a found person's email. To find someone who is not the run's record, such as a person an earlier step found on a schedule or webhook run, inside logic.for_each, give the person as firstName, lastName, companyDomain, companyName and linkedInUrl: the step then reads only those fields (first and last name with companyDomain or companyName, or linkedInUrl; a blank one counts as not given), loads no record and saves the email nowhere, so pass {{<id>.email}} on, for example to campaign.add_lead@1's email. The same waterfall, rules and cost apply. Those fields with personId are invalid_input. A place run with neither fails.","cost":{"free":false,"action":"WorkflowFindEmail","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"providers":{"description":"Waterfall stages to run, in this order: ken_db, domain_intel, pattern, leadmagic, findymail, prospeo (only when listed), and hunter, lusha, peopledatalabs, dropcontact, rocketreach, icypeas, enrow, apollo, datagma, snovio, zoominfo, moltsets, blitz, cognism, fullenrich, which run only on the workspace's own key for that provider (blitz needs the person's LinkedIn URL). Omit for the default order (Kenso DB, the domain's cached mail check, pattern guess, then the paid finders, the workspace's own keys first). To follow a campaign's finder settings, list only the finders the campaign allows.","type":["array","null"],"items":{"type":"string"}},"acceptCatchAll":{"description":"Also accept a catch-all address (the domain accepts every mailbox, so it cannot be verified). Default false: only a verified email is returned.","type":"boolean","default":false},"acceptUnverified":{"description":"When no email verifier is available (MailTester is not configured, or its bypass is on), return the first email Kenso's DB or a paid finder found, with status unverified, instead of failing. Default false. Has no effect while the verifier works.","type":"boolean","default":false},"uploadedEmailId":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. The lead's uploaded email row (live, provider default, validity unknown; the lead's first other such row once this one no longer is): while findymail is a stage and the company has a domain, Findymail checks that address before any other stage, as the old enrichment job did. A verified or catch-all verdict is the result (no paid find); no verdict lets the other stages run without a Findymail find.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"personId":{"description":"Find the email of this workspace person instead of the run's own record: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each. When it finds an email for a person who has none, the step saves it on the person (a place run cannot save to the person through save). Not together with firstName, lastName, companyDomain, companyName or linkedInUrl (invalid_input).","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"firstName":{"description":"Find the email of the person these fields describe instead of the run's own record, on any run (a schedule or webhook run about no record included), usually a reference such as {{item.firstName}} inside logic.for_each. Setting any of firstName, lastName, companyDomain, companyName or linkedInUrl, even to a reference that comes out empty, makes the step read only these fields: it loads no record and saves the email nowhere. It needs firstName and lastName with companyDomain (or companyName), or linkedInUrl; otherwise it fails with invalid_input. A blank value counts as not given.","type":["string","null"],"default":null},"lastName":{"description":"The last name of the person to find (see firstName).","type":["string","null"],"default":null},"companyDomain":{"description":"The domain of the person's company, such as acme.com (a URL is reduced to its domain), for the person in firstName and lastName.","type":["string","null"],"default":null},"companyName":{"description":"The name of the person's company. Without companyDomain, only Kenso's database and the finders that search by company name (prospeo and most workspace-key finders) use it, so give companyDomain when you have it.","type":["string","null"],"default":null},"linkedInUrl":{"description":"The person's LinkedIn profile URL (linkedin.com/in/...). Enough on its own: Kenso Search fills in the name and company domain it knows for the profile, and the finders that search by LinkedIn use it.","type":["string","null"],"default":null},"ownKeysFirst":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. While Kenso's email finder runs the pattern stage, the listed finders the workspace has its own key for run before it, as in the default order.","type":"boolean","default":false},"includeCollisionKey":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. Puts collisionOtherLinkedInKey in the output, for data.save_email.","type":"boolean","default":false},"includeRejected":{"description":"Only Kenso's own email pipeline may set this; your workflows leave it out. Puts rejected in the output, for data.save_email.","type":"boolean","default":false}}}},{"type":"data.find_events@1","key":"data.find_events","version":1,"kind":"data","title":"Find relevant events","description":"Finds upcoming conferences, trade shows, meetups and webinars the workspace's buyers attend, in person, hybrid or virtual, and adds the best as Suggested events on Accounts > Events for a member to add or dismiss. It reads the workspace's ICP and Knowledge and its live target accounts, searches the free public listings of Luma, dev.events, allevents and Meetup (and Eventbrite, 10times and Conference Index, through Firecrawl, where Kenso switched them on for the workspace), skips every event the workspace already has as an event or a suggestion (dismissed ones included), rates the rest for relevance, and names the target accounts an event's page lists as speakers, sponsors or exhibitors. It writes suggestions only: never an event, a touch or an import. Use it after trigger.schedule@1, weekly. Returns candidates, scored, suggested, skippedKnown, per-source reads and errors, the model tokens used, and firecrawlPages and firecrawlCredits. A source that fails is reported and the step still succeeds. Free: no credits are charged (web pages have a per-run cap; read only while the workspace may spend credits). Needs the accounts and event outbound features. Eventbrite and 10times block automated reads, so they are searched only where Kenso switched Firecrawl on for the workspace. LinkedIn Events are not searched: LinkedIn has no events search Kenso can call. To search Eventbrite or LinkedIn Events on the workspace's own Apify account, use data.apify_actor@1 then data.suggest_events@1 (the Apify event templates).","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"monthsAhead":{"description":"How far ahead to look: events starting after today and at most this many months out, 1 to 12. Default 6.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":6},"maxSuggestions":{"description":"The most events to suggest in one run, 1 to 50. Default 25.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":25},"minRelevance":{"description":"The lowest relevance (0 to 100) an event needs to be suggested. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50}}}},{"type":"data.find_instagram@1","key":"data.find_instagram","version":1,"kind":"data","title":"Find Instagram handle","description":"Finds the Instagram handle of the person behind the run's lead or person. Ken reads the links Kenso already holds (the person's LinkedIn text and their research), then searches the web for their Instagram profile, then asks an Instagram profile index, and stops at the first strong match. It never opens Instagram. The handle is not accepted for you: up to 3 candidates wait on the person page for someone to accept or reject. Returns status: needs_review, not_found, incomplete (a lookup could not finish, so nothing was saved and the next run tries again), already_accepted, recently_checked (a not_found or rejected person checked in the last 60 days), person_not_found or no_person (the lead is linked to no person), plus personId, handle (only when one is accepted) and incomplete. A person who already has candidates waiting is not searched again. Free during the beta. Needs the instagram feature. In a test run the step is simulated and finds nothing. On a place run, set personId to find a handle for a person found at the place.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"instagram"}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Find the handle for this workspace person instead of the run's own lead or person: a personId from data.find_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.find_people@1","key":"data.find_people","version":1,"kind":"data","title":"Find people","description":"Finds people who work at the run's account (or the company of the run's person or lead) in Kenso Search, by job title and seniority. Use it to map the buying committee of an account before outreach, then loop over the people to find their emails. Returns up to limit people with name, title and LinkedIn URL. Costs one find-people credit per person returned; nothing when it finds nobody. On an account run, addToAccount: true also adds each person to the workspace's people on the account (matched or created, source workflow) and returns their personId, so data.find_email in a logic.for_each and account.add_to_campaign after it work on them. On a place run (a Google Maps place) it looks up the company that owns the place's website domain and returns its owners, partners, executives and managers first; each person is added to (or matched in) the workspace's people with the place's domain as their company, and the result carries their personId. A place with no website, or whose company Kenso Search does not hold (Kenso Search covers fewer countries than Google Maps), finds nobody at no cost. A place whose website is a location page of a larger site (a chain's branch, such as /offices/tx/austin) is skipped at no cost with skipped chain_branch: its domain is the chain's headquarters. When the workspace saved its own Blitz key, Blitz is asked first (by the company's LinkedIn URL, else its domain; titles run Blitz's title cascade, seniorities its employee finder): its people cost no Kenso credits, since the workspace pays Blitz, and Kenso Search answers as above when Blitz finds nobody or is unavailable. Blitz cannot filter by titles and seniorities together, so a step that sets both always uses Kenso Search.","cost":{"free":false,"action":"WorkflowFindPeople","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"titles":{"description":"Job titles to look for, e.g. [\"Head of Sales\", \"VP Sales\"]. Required on an account, person or lead run (and at least one title or seniority must be set); on a place run titles and seniorities may both be left out (owners and managers first).","type":["array","null"],"items":{"type":"string"}},"seniorities":{"description":"Seniority levels to keep, e.g. [\"director\", \"vp\", \"c_level\"].","type":["array","null"],"items":{"type":"string"}},"limit":{"description":"How many people to return, 1 to 25. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"addToAccount":{"description":"Account runs only: also add each person found to the workspace's people on the run's account (matched by LinkedIn URL or Kenso person id, else created, source workflow) and return their personId, so data.find_email inside logic.for_each and account.add_to_campaign after it work on them. Default false. Ignored on person, lead and place runs (a place run always writes its people) and on a shadow run.","type":"boolean","default":false}}}},{"type":"data.find_phone@1","key":"data.find_phone","version":1,"kind":"data","title":"Find phone","description":"Queues a phone number find for the person behind the run's lead or person, the same find as Find phone on a person: Ken looks the number up in the background and saves the mobile it finds on the person and their campaign leads. Use it after trigger.reply@1 to get a number for leads who reply interested, before a call. Returns status: queued, already_has_phone (nothing queued), already_queued (a find for the person is already running), no_person (the lead is linked to no person) or skipped (the person was deleted or merged), and personId. Needs the calls or whatsapp feature, except in the workspace's copies of the LinkedIn connections enrich templates, whose enrich job runs find phones whatever the channels. A find is charged only when it finds a number, at the phone found price, like a find from the person page; the step adds no charge of its own, so that spend does not count toward the workflow's credit limits. In a test run the step is simulated and queues nothing. On a place run, set personId to queue a find for a person found at the place.","cost":{"free":false,"action":"PhoneFound","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"any_flag","key":"calls","anyOf":["calls","whatsapp"]}],"inputSchema":{"type":"object","properties":{"personId":{"description":"Queue the find for this workspace person instead of the run's own lead or person: a personId from data.find_people or ai.website_people on a place run, usually {{item.personId}} inside logic.for_each.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"data.podcasts@1","key":"data.podcasts","version":1,"kind":"data","title":"Podcast search","description":"Finds podcast appearances and what was said on them, in Particle's podcast index through Firecrawl. On a person or lead it resolves the person by LinkedIn URL, else by name checked against their company (a namesake at another company is not_found, never attached), lists the episodes they were a guest on and, with includeTranscript, their own lines from their best recent episode. On an account it reads the podcast mentions of the company (only when the index knows the company as an entity, never by name) and up to 3 of its most senior people who were guests, with one transcript. subject person on an account run fails the step (permanently, before any lookup, with no charge): an account workflow uses auto or company. Returns status (found, no_appearances, not_found, not_identified or failed), found, guestName, the latest episode (latestShow, latestEpisodeTitle, latestEpisodeDate, latestEpisodeUrl), appearances, quotes, guests and aiContext, a block written for Ken's writer. On a lead record a found person result (not subject company) is also saved on the lead as its ken_podcast custom value, which Ken's writer reads for emails, LinkedIn notes and voice notes (not in a test run). Priced by what the lookup used on Kenso's key (free on the workspace's own Firecrawl key): about 3.47 credits for a person found with a transcript, 0.5 for a person not found and at most 10.4 for a company. A result for the same person or company and the same options from the last 30 days is reused at no charge. Needs the podcast_enrichment feature.","cost":{"free":false,"action":"PodcastSearch","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"podcast_enrichment"}],"inputSchema":{"type":"object","properties":{"subject":{"description":"auto (default): the person on a person or lead run, the company on an account run. person or company picks one; company on a person or lead run looks up their company. person on an account run fails the step before any lookup, with no charge: use auto or company there.","type":"string","default":"auto","enum":["auto","person","company"]},"includeTranscript":{"description":"Also read what they said in their best recent episode (their own transcript lines). Default true.","type":"boolean","default":true},"maxAppearances":{"description":"Appearances kept per person, 1 to 5. Default 3.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3},"publishedWithinMonths":{"description":"Only episodes published this many months back or later, 1 to 60. Default 24.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":24}}}},{"type":"data.save_email@1","key":"data.save_email","version":1,"kind":"data","title":"Save email","description":"Kenso's own email pipeline only (system workflows): records the run's lead's email as the old email jobs did. From a data.find_email result it creates or updates the emails row (an address the lead already holds updates that row, never a second one) and records the outreach status of each stage it tried, and writes Findymail's check of the lead's uploaded address (uploadedEmailId, uploadedStatus) onto that row; from a data.verify_email result (emailId set) it updates that row's validity and verification attempts. An address another row of the same lead already holds as invalid stays invalid. A find on the workspace's own provider key is settled so it is never charged. The old jobs' rules apply first: a lead or address on the workspace's do-not-contact list marks the lead do-not-contact and writes no row, and a personal address on a campaign that does not allow them is saved invalid. Returns the row, its stored validity, the outreach statuses it added, whether it settled the find and whether the lead is do-not-contact.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"email":{"description":"The address to record, or null when nothing was found.","type":["string","null"]},"status":{"description":"verified, catch_all, unverified, valid, invalid, unknown, not_found or already_has_email (the find or verify step's status). An unverified find is saved as the old finder jobs save an unchecked hit; already_has_email writes nothing.","type":"string"},"source":{"description":"record, ken_db, pattern, findymail, leadmagic, prospeo, mailtester, bulk_email_checker or catch_all_waterfall.","type":["string","null"]},"tried":{"description":"Stages the find step tried, in order. Each maps to the outreach status the old job wrote.","type":["array","null"],"items":{"type":"string"},"default":null},"emailId":{"description":"Existing emails row that was verified (verify path). Null on the find path.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"customerKey":{"description":"Whether the workspace's own provider key ran the paid call: a new find is then settled, never charged.","type":"boolean","default":false},"checkedAt":{"description":"Verify path: the verify step's checkedAt. A check the row already counted is not counted again when the save is retried.","type":["string","null"],"format":"date-time","default":null},"catchAllWaterfall":{"description":"Verify path: the verify step's catchAllWaterfall (undecided or no_answer). The waterfall's attempt is counted as the catch-all job counted it.","type":["string","null"],"default":null},"uploadedEmailId":{"description":"Find path: the find step's uploadedEmailId, the lead's uploaded row Findymail checked.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"uploadedStatus":{"description":"Find path: the find step's uploadedStatus. verified, catch_all or unknown update that row in place as Findymail's (the old enrichment job's write) and record Findymail's outreach status; do_not_contact marks the lead.","type":["string","null"],"default":null},"verifiedBy":{"description":"The find or verify step's verifiedBy: the verifier whose check decided the status. The row is stamped as verified by it, now or at checkedAt (a mailtester verify is always MailTester's, a bulk_email_checker verify Bulk Email Checker's). Null stamps no verifier.","enum":["default","icypeas","lead_magic","prospeo","enrow","kitt","mail_tester","findymail","database_lookup","bulk_email_checker","moltsets","ken_finder","ken_verifier","loopster","blitz",null],"default":null},"sourceProvider":{"description":"Find path: the find step's sourceProvider. With verifiedAt, a ken_db email is saved with that provider; kenfinder on a pattern email saves it as Kenso's finder's.","type":["string","null"],"default":null},"verifiedAt":{"description":"Find path: the find step's verifiedAt. A verified ken_db email with it is saved as checked then, and is free: the lead's email credit is settled at 0.","type":["string","null"],"format":"date-time","default":null},"catchAllScore":{"description":"Find path: the find step's catchAllScore. Kenso's catch-all guess is saved with it as the address's catch-all score.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"collisionOtherLinkedInKey":{"description":"Find path: the find step's collisionOtherLinkedInKey, saved on Kenso's find.","type":["string","null"],"default":null},"rejected":{"description":"Find path: the find step's rejected. Each address MailTester called invalid is saved as an Invalid row of the stage that found it, verified by MailTester, unless the lead already holds it or it is on the workspace's do-not-contact list.","type":["array","null"],"items":{"type":"object","properties":{"email":{"description":"The address MailTester called invalid.","type":"string"},"source":{"description":"The stage that found it: ken_db or a paid finder (findymail, leadmagic, prospeo, ...).","type":"string"},"customerKey":{"description":"Whether the workspace's own provider key found it.","type":"boolean","default":false}},"required":["email","source"]},"default":null}},"required":["status"]}},{"type":"data.scrape@1","key":"data.scrape","version":1,"kind":"data","title":"Scrape page","description":"Scrapes a web page with Firecrawl and returns its content as markdown (or html), cut to 16 KB per page. With site true it also scrapes other pages of the same site, up to maxPages. Use it to read a company's website, pricing or careers page before an AI step researches, qualifies or writes about the account. Returns pages with url, title and content. Costs one scrape credit per page returned that Kenso read live; pages from Kenso's archive or the workspace's own Firecrawl key are free, and so is a page with no content.","cost":{"free":false,"action":"WorkflowScrape","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL of the page, e.g. https://{{account.primaryDomain}}.","type":"string"},"site":{"description":"Also scrape other pages of the same site (found from its sitemap and links), up to maxPages.","type":"boolean","default":false},"maxPages":{"description":"With site true, how many pages to return in total, 1 to 20. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"format":{"description":"markdown (default) or html.","type":"string","default":"markdown"}},"required":["url"]}},{"type":"data.social_lookup@1","key":"data.social_lookup","version":1,"kind":"data","title":"Social profile lookup","description":"Reads a social profile and its recent posts. By default it reads the run's person or lead LinkedIn URL (an account's LinkedIn page on an account run); urls names other links instead (LinkedIn, Facebook, Instagram, X, TikTok, YouTube or Crunchbase, at most 10). With posts on (the default) it also reads the LinkedIn profile's postsLimit most recent posts (1 to 10, 5 by default) from the last postsSinceDays days (90 by default). Returns status (found, no_records or running), records, profileUrl, summary (name, headline, location, followers and the posts, at most 1,500 characters) and keySource. On a lead run the summary is also saved on the lead as its ken_social custom value, which Ken's writer, segmentation and qualification always read (not in a test run; a lead with nothing found keeps its old value). A lead with no link, or only links social data cannot read, is skipped. Costs 0.15 credits per record read on Kenso's key (one profile and 5 posts: 0.9 credits); free on the workspace's own social data key, and free for records read in the last 7 days (profiles) or 24 hours (posts). Needs the social_data feature.","cost":{"free":false,"action":"SocialDataRecord","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"social_data"}],"inputSchema":{"type":"object","properties":{"urls":{"description":"Social links to read, as text or template expressions such as {{lead.linkedinUrl}}. Empty (the default): the run's person or lead LinkedIn URL, or on an account run the company's LinkedIn page. At most 10.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10},"posts":{"description":"Also read the LinkedIn profile's recent posts. Default true.","type":"boolean","default":true},"postsLimit":{"description":"How many recent posts to read, 1 to 10. Default 5.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5,"minimum":1,"maximum":10},"postsSinceDays":{"description":"Only posts from this many days back or later, 1 to 365. Default 90.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":90,"minimum":1,"maximum":365}}}},{"type":"data.social_search@1","key":"data.social_search","version":1,"kind":"data","title":"Social search","description":"Runs one social data search and returns its records: a LinkedIn profile's or company's posts, LinkedIn jobs by keyword and location or by company, LinkedIn people by name, a Facebook page's or group's posts, Facebook ads by keyword, an Instagram or X profile by username or its posts, TikTok posts or profiles by keyword, YouTube channels or videos by keyword, hashtag or channel, or Crunchbase companies by keyword. platform and type pick the search; url, keyword, location, country, company, firstName and lastName are what it reads; sinceDays keeps only recent records; limit caps them (1 to 100, 10 by default). Returns status (found, no_records or running), count, records (url, platform, kind, name, text, postedAt, metrics) and keySource. Writes nothing on the run's record. Costs 0.15 credits per record on Kenso's key; free on the workspace's own social data key, and free for the same search within 24 hours. Needs the social_data feature.","cost":{"free":false,"action":"SocialDataRecord","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"social_data"}],"inputSchema":{"type":"object","properties":{"platform":{"description":"The network to search: linkedin, facebook, instagram, x, tiktok, youtube or crunchbase.","type":"string","enum":["linkedin","facebook","instagram","x","tiktok","youtube","crunchbase"]},"type":{"description":"The search. linkedin: posts_by_profile, posts_by_company (url), jobs_by_keyword (keyword, location), jobs_by_company (company), people_by_name (firstName, lastName). facebook: posts_by_page, posts_by_group (url), ads_by_keyword (keyword). instagram and x: profile_by_username (keyword, the username), posts_by_profile (url). tiktok: posts_by_keyword, profiles_by_search (keyword), posts_by_profile (url). youtube: channels_by_keyword, videos_by_keyword, videos_by_hashtag (keyword), videos_by_channel (url). crunchbase: companies_by_keyword (keyword).","type":"string","enum":["posts_by_profile","posts_by_company","jobs_by_keyword","jobs_by_company","people_by_name","posts_by_page","posts_by_group","ads_by_keyword","profile_by_username","posts_by_keyword","profiles_by_search","channels_by_keyword","videos_by_keyword","videos_by_hashtag","videos_by_channel","companies_by_keyword"]},"url":{"description":"The profile, company, page, group or channel link a by-link search reads.","type":["string","null"],"default":null},"keyword":{"description":"The keyword, hashtag or username a keyword search reads.","type":["string","null"],"default":null},"location":{"description":"Job searches: a city, a country or Worldwide.","type":["string","null"],"default":null},"country":{"description":"A two-letter country code, such as US, for the searches that take one.","type":["string","null"],"default":null},"company":{"description":"jobs_by_company: the company's name.","type":["string","null"],"default":null},"firstName":{"description":"people_by_name: the person's first name.","type":["string","null"],"default":null},"lastName":{"description":"people_by_name: the person's last name.","type":["string","null"],"default":null},"sinceDays":{"description":"Only records from this many days back or later, 1 to 365, for the searches that read a date. Empty: any date.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":365},"limit":{"description":"The most records to return, 1 to 100. Default 10.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":10,"minimum":1,"maximum":100}},"required":["platform","type"]}},{"type":"data.suggest_events@1","key":"data.suggest_events","version":1,"kind":"data","title":"Suggest events from found items","description":"Turns event items another step found, usually data.apify_actor@1's items from an Eventbrite or LinkedIn Events actor, into Suggested events on Accounts > Events for a member to add or dismiss. It reads each item's name, page, dates, time zone, format, city, venue, organizer and summary where the item has them, and skips items without a name, a page or a date, and cancelled or past events. Then, as data.find_events@1 does, it skips every event the workspace already has as an event or a suggestion (dismissed ones included), rates the rest against the workspace's ICP and Knowledge, names the target accounts an event's own text mentions, and writes the best with a one-line reason and the event's page. It writes suggestions only: never an event, a touch or an import. Returns the item, event and skip counts, candidates, scored, suggested, and the model tokens used. Free: no credits are charged. Needs the accounts and event outbound features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"items":{"description":"The event items, usually an Apify actor step's items: {{find.items}}. At most 200 are read.","type":["array","null"],"default":null},"source":{"description":"Where the items come from, shown on each suggestion: eventbrite, linkedin, luma, dev_events, allevents or meetup.","type":"string","default":"eventbrite","enum":["eventbrite","linkedin","luma","dev_events","allevents","meetup"]},"monthsAhead":{"description":"How far ahead to look: events starting after today and at most this many months out, 1 to 12. Default 6.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":6},"maxSuggestions":{"description":"The most events to suggest in one run, 1 to 50. Default 25.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":25},"minRelevance":{"description":"The lowest relevance (0 to 100) an event needs to be suggested. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50}}}},{"type":"data.verify_email@1","key":"data.verify_email","version":1,"kind":"data","title":"Verify email","description":"Checks whether an email address can receive mail, with MailTester, or with Bulk Email Checker when provider is bulk_email_checker (MailTester checks it instead in the same attempt when Bulk Email Checker is off, paused, out of credits, over its hourly quota or unreachable, or when it fails to answer; when all its slots are busy or it answers 429, the step retries after a minute), or with the workspace's own ZeroBounce, NeverBounce, Hunter or Icypeas key when provider is zerobounce, neverbounce, hunter or icypeas (MailTester checks it instead when the workspace has no working key or the vendor does not answer; a key that is rate limited or cooling down, or an Icypeas check still running, retries after a minute). Use it on addresses that came from a record, a webhook or another tool before sending to them (data.find_email already verifies what it finds). Returns the email and a status: valid, invalid, catch_all (the domain accepts every mailbox) or unknown. With resolveCatchAll, a catch_all address also goes through the catch-all waterfall (LeadMagic, then Findymail), which can turn it into valid or invalid. Each workspace has a daily verification cap; over it, the step retries after midnight UTC (a check on the workspace's own key does not count against it). Costs one verify credit when the status is valid, invalid or catch_all; an unknown result, and any result from the workspace's own key (customerKey true), is free.","cost":{"free":false,"action":"WorkflowVerifyEmail","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":true},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"email":{"description":"The address to verify, usually {{find.email}} or a record field such as {{person.email}}.","type":"string"},"attempts":{"description":"How many times this address was already checked. At 6 the step is skipped (verification_attempts_exhausted). Omit when unknown.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"lastAttemptAt":{"description":"When this address was last checked (UTC). Within 30 minutes of it the step retries once the 30 minutes have passed. Omit when unknown.","type":["string","null"],"format":"date-time","default":null},"resolveCatchAll":{"description":"When MailTester says catch_all, also run the catch-all waterfall (LeadMagic, then Findymail) and return valid or invalid when it decides. Not on the last attempt (attempts 5), as the old catch-all job. Default false.","type":"boolean","default":false},"skip":{"description":"Skip the check (the step is skipped with verification_skipped), for example for a campaign without MailTester verification. Default false.","type":"boolean","default":false},"provider":{"description":"Who checks the address: mailtester (default), bulk_email_checker (Kenso's Bulk Email Checker account), or zerobounce, neverbounce, hunter or icypeas (the workspace's own ZeroBounce, NeverBounce, Hunter or Icypeas key, connected in Settings > Integrations; free in Kenso credits). MailTester checks the address in the same attempt, and the output's provider says mailtester, when Bulk Email Checker is off, paused, out of credits, over its hourly quota, unreachable, or fails to answer (a timeout, a 5xx or a vendor error), and when the workspace has no working ZeroBounce, NeverBounce, Hunter or Icypeas key (none, refused or out of credits) or that vendor does not answer. When all Bulk Email Checker's slots are busy or it answers 429, or the workspace's key is rate limited or cooling down after a rate limit or an out-of-credits answer, or Icypeas is still checking the address, the step retries after a minute and MailTester is not used.","type":"string","default":"mailtester","enum":["mailtester","bulk_email_checker","zerobounce","neverbounce","hunter","icypeas"]},"catchAllVerifiers":{"description":"Kenso's system workflows only: the catch-all verifiers the lead's campaign chose, leadmagic and/or findymail. resolveCatchAll then runs only those, in the waterfall's order (LeadMagic, then Findymail), and none when the list is empty. Omit to run the whole waterfall.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["email"]}},{"type":"find.facebook_profile@1","key":"find.facebook_profile","version":1,"kind":"data","title":"Find Facebook profile","description":"Finds the Facebook profile of the run's person (\"record\", a person or lead run) or of a person id. Ken checks known profiles first, then at most two web searches, and verifies each candidate through the account's Sends from Facebook account, else, when none is set, its owner's (none usable fails with connect_facebook). It runs at most once per person per 30 days; a later run returns what the last one found. A strong match is confirmed at once. A weak match waits for the \"Is this them?\" answer in Today: with onWeakMatch wait (default) the step waits up to 14 days for it, with continue it goes on at once as not found. When discovery cannot run (Facebook outreach is off for this workspace, the account is not connected, or a limit stops it) the step fails as temporary, facebook_discovery_skipped, and tries again instead of answering none. Returns found, confidence (strong or weak for a confirmed profile, weak for an unconfirmed weak match, none) and profileUrl (the confirmed profile, else null). Branch on {{find.found}} before send.facebook@1. Costs the web searches it runs, at most two per person.","cost":{"free":false,"action":"WebScrape","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":true},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"facebook_outreach"}],"inputSchema":{"type":"object","properties":{"person":{"description":"Whose profile to find: \"record\" (default) for the run's person, or a person id. An account run needs a person id.","type":"string","default":"record"},"onWeakMatch":{"description":"\"wait\" (default): with only a weak match, wait up to 14 days for the \"Is this them?\" answer in Today. \"continue\": go on at once as not found.","type":"string","default":"wait","enum":["wait","continue"]}}}},{"type":"flow.subworkflow@1","key":"flow.subworkflow","version":1,"kind":"logic","title":"Run another workflow","description":"Starts a run of another live workflow of the same workspace. The child runs for the same record unless `record` names another one. `workflowId` is that workflow, `inputs` optional values handed to the child run, and with `wait` (default true) this run waits until the child finishes; with `wait: false` it continues at once. When the child declares an `interface`, `inputs` are rendered here (references and {\"$formula\"} values), checked against it before the child starts, read in the child as `{{trigger.<name>}}`, and a waited child returns the interface's `outputs`. `record` ({\"type\": \"person\", \"id\": \"{{item.id}}\"}) runs the child on that record, for example one person per for-each item. Use it to reuse one shared sequence of steps from several workflows. Returns the child's `runId` and `status`, and `outputs` for a child with an interface. Free; the child's own steps are charged to the child run.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"workflowId":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"inputs":{"type":["object","null"],"default":null},"wait":{"type":"boolean","default":true},"record":{"description":"Run the child on this record instead of this run's: {\"type\": \"person\", \"id\": \"{{item.id}}\"}. Left out, the child runs on this run's record.","type":["object","null"],"properties":{"type":{"description":"account, person, lead, place or none.","type":"string"},"id":{"description":"The record's id: a number, or one {{reference}} to one, such as {{item.id}} inside a for-each. Null for type none."}},"required":["type","id"],"default":null}},"required":["workflowId"]}},{"type":"http.request@1","key":"http.request","version":1,"kind":"action","title":"HTTP request","description":"Calls a public HTTP or HTTPS API and returns the status, the body parsed as JSON (or its first 32 KB as text) and the response headers. Use it to look a record up in, or push it to, a tool Kenso has no built-in step for. Reference API keys in headers as {{secrets.NAME}}. Or name a workspace connection in connection: the step sends its credential and takes a path as url. To read from Kenso's own API (a /v1/ path, or https://api.ken.so/v1/...) set no Authorization header: the step calls it as this workspace with the Viewer access of the person who last saved the workflow, read-only (GET, HEAD, or POST to a search), with no key to set up. 2xx succeeds; 429 and 5xx fail as temporary and are retried only for GET and HEAD; other 4xx fail permanently; private and internal addresses are refused. Waits at most 30 seconds and reads at most 1 MB. With pagination (GET, or a POST search that takes its cursor in the body) it follows up to 20 pages and returns their items as one list. Free, within a workspace limit of 5,000 requests a day and 60 a minute to one domain (a tenth of that on the Free plan): a request over a limit is not sent and waits for the limit to reset.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL on port 80, 443 or 8080-8090. Private and internal addresses are refused. The step log shows only its scheme, host and port. To call Kenso's own API, write a /v1/ path (/v1/campaigns/{{trigger.campaignId}}) or https://api.ken.so/v1/... and set no Authorization header: the step then calls it as this workspace, read-only, with no API key. Kenso's server must be written in the step, not filled from run data.","type":"string"},"method":{"description":"GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS. Only GET and HEAD are retried automatically. A call to Kenso's API with no Authorization header takes GET, HEAD, or POST to a search.","type":"string","default":"GET"},"headers":{"description":"Request headers. Reference credentials as {{secrets.NAME}}: headers are the only place this step takes a secret, and publishing it needs the Integrations permission. Secret values are redacted in the step log, and a redirect to another origin keeps only the Accept, Content-Type and User-Agent headers. Leave out Authorization to call Kenso's API with no key: the step sets Authorization and X-Ken-Workspace-Id itself, and Ken-Version 1.1 unless you set it.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"body":{"default":null},"timeoutSeconds":{"description":"Seconds to wait for the response, 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30},"connection":{"description":"Name of a workspace connection (workflow-connections), written in the step. The step then sends the connection's credential itself, so set no secret header for it. url may be a path that starts with /, joined to the connection's base URL; an absolute url must be https on one of the connection's allowed hosts, and a redirect outside them is refused. A header the connection sets wins over the same header here. Publishing a step with a connection needs the Integrations permission.","type":["string","null"],"default":null},"query":{"description":"Query parameters appended to url, URL-encoded. A number or true/false is sent as its text. Takes no {{secrets.NAME}}.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"form":{"description":"Form fields, sent as the body with Content-Type application/x-www-form-urlencoded. Set form or body, never both. Takes no {{secrets.NAME}}.","type":["object","null"],"additionalProperties":{"type":"string"},"default":null},"neverError":{"description":"true: the step succeeds on any HTTP status and the output's ok says whether it was 2xx, so a later step can branch on status. A blocked address, a timeout, a network failure and a JSON answer over 1 MB (response_too_large) still fail. Default false.","type":"boolean","default":false},"pagination":{"description":"Follow the API's pages and return their items as one list in items. GET, or a POST search that takes its cursor in the JSON body (mode cursor, in body). Each page is one request against the workspace's HTTP limits. Stops at maxPages, 1,000 items, 200 KB of items, an empty page, a page identical to the one before it, or after 120 seconds.","type":["object","null"],"properties":{"mode":{"description":"How the API pages: cursor (each response holds a cursor to send back), offset (a numeric offset and a page size) or next_url (each response holds the next page's URL). Write it in the step: it cannot come from run data.","type":"string"},"itemsPath":{"description":"Dot path to the list in each page, for example data or result.records. Leave it out when the response body itself is the list.","type":["string","null"],"default":null},"cursorPath":{"description":"cursor: dot path to the next cursor in each response, for example pagination.nextCursor. The step stops when it is missing, null or empty.","type":["string","null"],"default":null},"cursorParam":{"description":"cursor: the query parameter that carries the cursor on the next request, for example cursor. With in body: the dot path in the JSON body that takes it, for example after.","type":["string","null"],"default":null},"offsetParam":{"description":"offset: the query parameter that carries the offset, for example offset. The step sets it itself, starting at 0.","type":["string","null"],"default":null},"limitParam":{"description":"offset: the query parameter that carries the page size, for example limit. Leave it out when the API has none.","type":["string","null"],"default":null},"pageSize":{"description":"offset: items per page, 1 to 1000, and no more than the API returns in one page. The offset moves by this much, and a page with fewer items is the last.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"nextUrlPath":{"description":"next_url: dot path to the next page's absolute URL in each response, for example links.next. The step stops when it is missing, null or empty. The URL must be on the step's own server, or with a connection on one of its allowed hosts.","type":["string","null"],"default":null},"maxPages":{"description":"The most pages to request, 1 to 20.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"in":{"description":"cursor: where the next request carries the cursor. query (the default): the query parameter cursorParam. body: the dot path cursorParam in the JSON body, for a POST search such as HubSpot's; the body must be a JSON object and every page goes to the same URL. A POST is never retried automatically, paging or not, so a failed page fails the step. Use body only on an endpoint that reads, never on a POST that creates or changes anything.","type":["string","null"],"default":null}},"required":["mode"],"default":null}},"required":["url"]}},{"type":"human.approve@1","key":"human.approve","version":1,"kind":"human","title":"Wait for approval","description":"Pauses the run until a person approves or rejects it. Opens an approval that a workspace member decides through the workflow approvals routes (list, get, decide), which the Ken MCP and the CLI call too; the optional notify entries tell them by email or in a Slack channel; the email skips a member who turned off workflow approval emails, and the approval stays open for them either way. assignee says who decides: owner, anyone, or a member id. Returns decision (approved or rejected), decidedBy, decidedAt, note and the collected fields. When nobody decides within timeoutHours (72 by default, at most 720), onTimeout decides: reject or approve end the step with that decision and timedOut true, fail fails it. Guard the next steps with when: \"{{approve.decision}} == 'approved'\". A test run does not wait: it returns an approved decision with simulated true. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"title":{"description":"What the person is asked to approve, in one line. References are filled from the run.","type":"string"},"summary":{"description":"Optional detail shown under the title: the facts the person needs to decide.","type":["string","null"],"default":null},"assignee":{"description":"Who decides: owner (the author of the published workflow version, else its creator), anyone (any member who can edit workflows), or a member id written as text (\"42\") or as a reference such as {{owner.memberId}}. A named member decides it whatever their Workflows access, a view-only member too; a member on a Client or Network member seat cannot be named.","type":"string","default":"owner"},"fields":{"description":"Optional values to collect with the decision, at most 10. Each has name, type (text, number or boolean), required and label.","type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"required":{"type":"boolean","default":false},"label":{"type":["string","null"],"default":null}},"required":["name","type"]},"default":null,"maxItems":10},"notify":{"description":"Who is told that an approval is waiting: email (the assignee, or the owner when the assignee is anyone) and slack:#channel. Best effort: a notification that fails never fails the step, and an email past the workspace's 5,000 workflow emails a day is not sent.","type":["array","null"],"items":{"type":"string"},"default":null},"timeoutHours":{"description":"Hours to wait for a decision, 1 to 720. 72 when left out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":72,"minimum":1,"maximum":720},"onTimeout":{"description":"What happens when nobody decides in time: reject or approve (the step succeeds with that decision and timedOut true), or fail (the step fails).","type":"string","default":"reject","enum":["reject","approve","fail"]}},"required":["title"]}},{"type":"integration.call@1","key":"integration.call","version":1,"kind":"action","title":"Call an app","description":"Runs a ready-made request to an app such as HubSpot, Salesforce or Google Sheets, with a connection of this workspace. operation names it as <app>.<key> (workflow-integrations-list names every app, workflow-integrations-get its operations and inputs); connection names the workspace connection that holds the app's credential; inputs fills the operation's inputs. Returns { operation, status, ok, data }, or for an operation that returns a list { operation, status, ok, items, count, truncated }: an operation that pages reads up to maxItems (default 100, at most 1,000) across its pages, any other returns the one page the app answers, a list in it cut to maxItems. An answer over 1 MB is never read as whole: it fails as response_too_large, or ends the pages read with truncated true. It runs through the same guards and limits as http.request: 2xx succeeds, 429 and 5xx fail as temporary, other 4xx fail permanently. Only an operation that reads is retried, or runs for real in a test run; one that writes is retried only after a 429, which the app did not take, and runs in a test only when named in liveSteps. Free, and counts against the workspace's HTTP request limits.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"operation":{"description":"The catalog operation to run, <app>.<key>, for example hubspot.contacts.search, written in the step. workflow-integrations-list names every app; workflow-integrations-get lists an app's operations and their inputs.","type":"string"},"connection":{"description":"Name of a workspace connection (workflow-connections), written in the step: one of the types the app takes, on a host it allows. The step sends its credential. Publishing a step with a connection needs the Integrations permission.","type":"string"},"inputs":{"description":"The operation's inputs by name, as workflow-integrations-get lists them with their types. A value may be a reference or a computed value. 30 at most.","type":["object","null"],"default":null},"maxItems":{"description":"The most items to return, 1 to 1,000. Default 100. An operation that pages (workflow-integrations-get says paginated) reads its pages up to this many; any other returns the one page the app answers, and a list in it is cut to this many.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100,"minimum":1,"maximum":1000},"neverError":{"description":"true: the step succeeds on any HTTP status and the output's ok says whether it was 2xx. A blocked address, a timeout and a network failure still fail. Default false.","type":"boolean","default":false}},"required":["operation","connection"]}},{"type":"knowledge.run_skill@1","key":"knowledge.run_skill","version":1,"kind":"ai","title":"Run a skill","description":"Runs one of the workspace's Knowledge skills for the run's account and puts what the skill writes on Today as a task. Kenso adds this step itself to the workflow it keeps for each turned-on skill; in any other workflow it fails. Skipped when the skill changed, was turned off or deleted since the run started, or the run has no account. Costs one balanced AI prompt for each task it writes.","cost":{"free":false,"action":"WorkflowAiPromptBalanced","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"knowledge"}],"inputSchema":{"type":"object","properties":{"fileId":{"description":"The skill's Knowledge file id. Kenso sets it.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"specHash":{"description":"The textHash of the trigger this workflow was built from. A run whose skill changed since is skipped.","type":"string"},"firstMeetingOnly":{"description":"meeting_booked skills: run only for the lead's first booked meeting.","type":"boolean","default":false},"negotiationId":{"default":null}},"required":["fileId","specHash"]}},{"type":"lead.play_target@1","key":"lead.play_target","version":1,"kind":"action","title":"Find the lead's account","description":"Gets a lead ready for a Play's email: finds the account by company domain, else work-email domain, else adds it at stage new (campaigns keep sending; no research queued), adds the person as an engaged member and links the lead. Never moves a stage or stops a sequence. Returns ok, accountId, personId, created and inReplyTo (the msg_ id of messageId, else of the lead's latest campaign email). ok is false with reason no_domain, no_person or removed; follow it with a logic.filter on {{<node>.ok}} == true. Runs on a lead. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The email to answer: {{trigger.messageId}} on a reply run, {{trigger.lastMessageId}} on a hot page run. A native Message-ID or a msg_ id. Leave out to answer the lead's latest campaign email.","type":["string","null"],"default":null}}}},{"type":"lead.revival_check@1","key":"lead.revival_check","version":1,"kind":"action","title":"Check the lead can be revived","description":"Decides whether Ken may follow up now on a lead's reply (objection, out_of_office or interested) that went quiet. Use it after a logic.wait until {{trigger.followUpAt}} on a reply-triggered run, then branch on revivable. It reads the reply (messageId, else the lead's latest campaign reply) and checks, in order: the class, that the follow-up date has come, no bounce, unsubscribe or complaint since, not suppressed, no other human reply since, nobody wrote on the thread within quietDays, no send still planned by a sequence, no meeting booked in the last 365 days or later (only after meetingsAfter when set), no open opportunity on the account (skipIfOpenOpportunity), no revival sent to the same email within cooldownDays, and not in the holdout. Every check covers every campaign row with the same email. A negative reply is refused unless allowNegative is true, and then revives only when it is at least 180 days old, the lead's account has a funding or hiring signal since it, and the contact's country is known and outside the EU, the EEA, the UK and Switzerland. After a logic.wait_for_event on signal.fired, pass wakeSignal {{<node>.event.signal}}: a funding or hiring signal makes the follow-up due now unless the person asked for a date or is out of office. Returns revivable and, when false, the reason (not_found, class_not_revivable, negative_not_allowed, negative_too_recent, negative_no_signal, eu_uk_contact, country_unknown, not_due, non_engageable, suppressed, replied_again, thread_active, in_sequence, meeting_booked, open_opportunity, cooldown or holdout), plus the reply's messageId, threadId, classification, campaignId, receivedAt, followUpAt and followUpSource. A run about a lead, or about an account with contactId the lead at that account (opportunity.revival_target finds it; a lead of another account fails the step). Needs the lead_revival feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The reply to revive: {{trigger.messageId}} on a reply-triggered run. Leave out to use the lead's latest classified campaign reply (any campaign row with the same email).","type":["string","null"],"default":null},"cooldownDays":{"description":"No revival when one was sent to this person (same email, any campaign) within this many days. 30 to 730. Default 365.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":365},"skipIfOpenOpportunity":{"description":"Skip a lead whose account has an open opportunity. Default true.","type":"boolean","default":true},"holdoutPercent":{"description":"Share of the workspace's revivable leads held out to measure lift, 0 to 50. Default 10. The same person is always in or out.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":10},"applyHoldout":{"description":"Apply the holdout. Default true; a person deciding by hand sets false.","type":"boolean","default":true},"quietDays":{"description":"Skip when anyone wrote on the reply's thread within this many days. 0 to 90; 0 turns the check off. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"excludeMessageIds":{"description":"Message ids the thread check ignores, such as this workflow's own revival. Default none.","type":["array","null"],"items":{"type":"string"},"default":null},"contactId":{"description":"On a run about an account, the lead to check: {{<target>.contactId}} from opportunity.revival_target. Honored only when that lead's account is the run's account; any other lead fails the step. Leave out on a run about a lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"meetingsAfter":{"description":"Only meetings that start at or after this time stop the revival, such as {{trigger.changedAt}} on a lost deal, so the deal's own meetings do not. Default: every meeting of the last 365 days.","type":["string","null"],"format":"date-time","default":null},"allowNegative":{"description":"Revive a negative (not interested) reply too. Default false: negative_not_allowed. When true, only a reply at least 180 days old (negative_too_recent), with a funding or hiring signal on the lead's account since it (negative_no_signal), from a contact whose country is known (country_unknown) and outside the EU, the EEA, the UK and Switzerland (eu_uk_contact). not_interested stays negative_not_allowed.","type":"boolean","default":false},"wakeSignal":{"description":"The signal that woke the run early: {{<wait_for_event>.event.signal}}. funding or hiring makes a follow-up date due now, unless the person asked for it or is out of office; any other value, or none, changes nothing. Pass only that event reference: a literal funding or hiring makes every class-rule date due at once.","type":["string","null"],"default":null},"dueAfterDays":{"description":"Days after the reply it is due, in place of the class rule's date. 1 to 365. An asked or out-of-office date still wins.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"list.map@1","key":"list.map","version":1,"kind":"action","title":"Reshape a list","description":"Goes through a list and turns each item into a new one. fields builds an object per item (name to formula); value makes each item one formula's result; where drops the items it is not true for first. The formulas read {{item}}, {{index}} (from 0) and {{context}} only: put anything else the run knows into context, which is rendered once. Up to 5,000 items, 2 seconds of work and 256 KB of output. Returns items, count, dropped, errors and truncated.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"items":{"description":"The list to go through: a reference such as {{src.rows}}, or a {\"$formula\"} that gives a list. Empty (a skipped step) is an empty list."},"fields":{"description":"What each item becomes: an object of these fields, name to formula, at most 30. Kept as written, never rendered. Set this or value.","type":["object","null"],"default":null},"value":{"description":"One formula each item becomes, for example lower({{item.email}}). Kept as written, never rendered. Set this or fields.","type":["string","null"],"default":null},"where":{"description":"A formula: items where it is not true (null, false, 0, '' and [] are not) are dropped before fields or value.","type":["string","null"],"default":null},"keep":{"description":"With fields: start from the item's own keys, then add or replace the fields. Default false.","type":"boolean","default":false},"context":{"description":"Values from the run the formulas need, rendered once: {\"min\": \"{{score.value}}\"} is read as {{context.min}}.","type":["object","null"],"default":null},"maxItems":{"description":"The most items to go through, 1 to 5,000. The rest is cut and truncated is true. Default 5,000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5000,"minimum":1,"maximum":5000},"onItemError":{"description":"When an item's formula fails: null (the field is null), skip (drop the item) or fail (stop the step). Default null.","type":"string","default":"null","enum":["null","skip","fail"]}},"required":["items"]}},{"type":"list.merge@1","key":"list.merge","version":1,"kind":"action","title":"Merge lists","description":"Combines values from earlier steps. append puts 2 to 10 lists one after another (dedupeBy drops repeats); combine matches the items of 2 to 10 lists by key and joins each match into one item (join inner, left or outer; onConflict first or last); first_present returns the first of up to 10 inputs that is not empty, as a fallback. An input of a skipped step is empty. Returns items, count and unmatched, or value, index and found. At most 5,000 items.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"mode":{"description":"append puts the lists one after another; combine matches their items by key; first_present takes the first input that has a value.","type":"string","enum":["append","combine","first_present"]},"inputs":{"description":"The values to merge, as references or {\"$formula\"}: 2 to 10 lists for append and combine, 1 to 10 values for first_present. An empty one (a skipped step) is an empty list, or no value.","type":"array"},"key":{"description":"combine only, and needed there: the field that matches items across the lists, or a dot path of up to 3 levels (company.domain).","type":["string","null"],"default":null},"join":{"description":"combine only: inner keeps items found in every list, left keeps every item of the first list, outer keeps every item. Default outer.","type":["string","null"],"default":null,"enum":["inner","left","outer",null]},"onConflict":{"description":"combine only: which list wins a field two matched items both have, first or last. Default last.","type":["string","null"],"default":null,"enum":["first","last",null]},"dedupeBy":{"description":"append only: drop a later item whose value at this field (or dot path) an earlier item already has.","type":["string","null"],"default":null}},"required":["mode","inputs"]}},{"type":"logic.branch@1","key":"logic.branch","version":1,"kind":"logic","title":"Branch","description":"Routes the run down one of several paths (if / else). Arms are checked in order: the first arm whose `when` formula is true runs the steps in its `next`, and the arm with `else: true` runs when no other arm is true. Arms' `next` replace the step's own `next`; steps reachable only through arms not taken are skipped. When no arm is true and there is no else arm, nothing after the branch runs. Use it to treat records differently, for example qualified accounts vs the rest. Returns `taken`, the label of the arm that ran (null when none ran), and `matched`, the label of every arm whose `when` is true, in arm order (the else arm never), so you can see when a record fitted more than one arm. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"next":{"type":"array","items":{"type":"string"}},"when":{"type":["string","null"],"default":null},"else":{"type":"boolean","default":false}},"required":["label","next"]}}},"required":["branches"]}},{"type":"logic.filter@1","key":"logic.filter","version":1,"kind":"logic","title":"Filter","description":"Continues the run only when a condition holds. `when` is a formula over the trigger, the record and earlier steps; when it is false the run ends as succeeded and every later step is skipped, so nothing after it spends credits or sends. Use it early to drop records that do not fit, for example `{{account.employeeCount}} >= 20`. Returns `passed` (true or false). Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"when":{"type":"string"}},"required":["when"]}},{"type":"logic.for_each@1","key":"logic.for_each","version":1,"kind":"logic","title":"For each","description":"Runs a set of body steps once per item of a list. `items` is a {{reference}} or a formula that gives a list from earlier steps (anything else fails the step); inside the body, `{{item.*}}` is the current item. `steps` are the body steps, written like top-level steps (a for-each cannot hold another for-each more than one level deep: a body may hold one for-each of its own, never a third level, when both loops set `maxItems` and the two multiplied are at most 5,000. In that inner body `{{item.*}}` is the inner item, `{{run.parentItem.*}}` the outer item, and `{{run.itemIndex}}` and `{{run.parentItemIndex}}` are their positions from 0. The inner for-each runs at most 10 divided by the outer `concurrency` items at a time, at least 1. When an inner item fails, the inner for-each fails with `for_each_items_failed` and so does its outer item, unless the inner for-each has `onFailure: continue`). At most `concurrency` items run at a time (1 to 50, default 5). An item fails when any of its body steps fails, and a body step with `onFailure: stop` ends only its own item, never the run. The step finishes when every item is done. Use it for each person found at an account, each URL, each row. Returns `count`, `succeeded` and `failed`. `collect: true` adds `items` to the output: one `{index, status, outputs}` per item run, in order, where `outputs` maps each body step id to its output (null for a body step that failed or was skipped) and `status` is `succeeded` or `failed`; at most 200 items and 200 KB are kept, and `truncated: true` says the list was cut. `maxItems` (1 to 5000) runs only the first that many items of a longer list and reports the rest as `skippedItems`. Free; body steps cost what they cost per item.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"items":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","pattern":"^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*@[1-9][0-9]*$"},"with":{"type":["object","null"],"default":null},"when":{"type":["string","null"],"default":null},"next":{"type":["array","null"],"items":{"type":"string"},"default":null},"onFailure":{"type":["string","null"],"pattern":"^(stop|continue|branch:.+)$"},"retry":{"type":["object","null"],"properties":{"maxAttempts":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"initialDelaySeconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"maxDelaySeconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"default":null},"save":{"type":["array","null"],"items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"]},"default":null},"title":{"type":["string","null"],"default":null},"saveOutputs":{"type":["boolean","null"],"default":null},"titlePinned":{"type":["boolean","null"],"default":null}},"required":["id","type"]}},"concurrency":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":5},"collect":{"description":"True adds items to the output: one { index, status, outputs } per item run, in order. Default false.","type":"boolean","default":false},"maxItems":{"description":"Run at most this many items, 1 to 5000. A longer list runs its first maxItems and reports the rest as skippedItems. Null runs the whole list.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["items","steps"]}},{"type":"logic.formula@1","key":"logic.formula","version":1,"kind":"logic","title":"Formula","description":"Computes new values from earlier results with formulas, without calling anything outside Kenso. `outputs` maps each output name to a formula, for example `lower(trim({{account.primaryDomain}}))` or `if({{qualify.score}} >= 70, 'hot', 'cold')`. Functions include lower, upper, trim, contains, split, len, coalesce, if, round, number, text, now, daysSince, addDays and addBusinessDays (date, days, optional IANA time zone: Monday to Friday on that zone's calendar, same time of day, UTC when the zone is blank or unknown). Returns an object with one field per output name, which later steps reference as {{<step id>.<name>}}; the step fails on the first formula that errors. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"outputs":{"type":"object","additionalProperties":{"type":"string"}}},"required":["outputs"]}},{"type":"logic.wait@1","key":"logic.wait","version":1,"kind":"logic","title":"Wait","description":"Pauses the run, then continues with the next steps. Set one of `seconds` (86400 is one day) or `until`, an ISO 8601 time or a {{reference}} to one; a time in the past or one that cannot be read continues at once. Use it to space out follow-ups or to act at a set time. Returns `resumedAt`, when the run continued. A test run does not wait. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"seconds":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"until":{"type":["string","null"],"default":null}}}},{"type":"logic.wait_for_event@1","key":"logic.wait_for_event","version":1,"kind":"logic","title":"Wait for event","description":"Parks the run until an event arrives for the run's record, or until the timeout. `event` is the event type (for example `reply.received` (a campaign reply on a lead run, or a 1:1 email, LinkedIn, WhatsApp or iMessage reply on a person run, with `channel`: match {\"channel\": \"whatsapp\"} to wait for one channel; an iMessage reply also carries `classification`, `unclassified` for a photo, voice memo or file with no words), `meeting.booked`, `touch.sent`, or `touch.not_sent` when the touch will not be sent, with `status` skipped or deleted; a failed touch may still be retried, so it resolves neither, or `account.re_engaged` in an account run: a human reply from the account or a third view of its page, with `reason` reply or asset_views, or `facebook.reply_received` (a person on the workspace wrote back on Facebook) or `facebook.friend_accepted` (they accepted a friend request Ken sent) in a person run, each with `personId`, `touchId` or `threadId`, and `facebookAccountId`, or `instagram.replied` (the person wrote back in an Instagram chat with an accepted handle) in a person run, with `personId`, `threadId`, `messageId` and `instagramAccountId` and no message text, or `meeting.guest_returned` in an account run: the meeting's guest booked again from any tool or answered a meeting email, with `reason` rebooked or replied), `match` lists payload fields that must be equal (a list is one of: {\"signal\": [\"funding\", \"hiring\"]} takes either), `timeoutSeconds` defaults to 7 days, `timeoutUntil` (an ISO 8601 time or one {{reference}} to one, such as `{{trigger.followUpAt}}`) times out at that date instead and wins over `timeoutSeconds` when it resolves (a past date times out at once, a blank or unreadable one falls back to `timeoutSeconds`), and `onTimeout` is `continue` (the run goes on with timedOut = true) or `fail`. Use it to react to what a person does after a send, or to let an event race a date. Returns `timedOut` and the matching `event` payload. A test run does not wait: it goes on as if the event arrived (timedOut = false) with no `event` payload. Pin {\"timedOut\": true} to test the timeout path, or {\"timedOut\": false, \"event\": {...}} for steps that read the event. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"event":{"type":"string"},"match":{"description":"Payload fields the event must have, each equal to its value. A list is one of: {\"signal\": [\"funding\", \"hiring\"]} takes either signal; a list payload value is compared whole. Null takes every event of the type for the run's record.","type":["object","null"],"default":null},"timeoutSeconds":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":604800},"onTimeout":{"type":"string","default":"continue"},"timeoutUntil":{"description":"An ISO date, or one {{reference}} to a date, when the wait times out. Wins over timeoutSeconds when it resolves; a past date times out at once; blank or unresolvable falls back to timeoutSeconds.","type":["string","null"],"default":null}},"required":["event"]}},{"type":"meeting.booking_link@1","key":"meeting.booking_link","version":1,"kind":"action","title":"Get the booking link","description":"Gets the lead's booking link: their Kenso scheduler link, else the rep's own booking tool. Returns url and source (kenso or external); with no link, url is null and source is none, so the email asks for a time instead. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object"}},{"type":"meeting.draft_follow_up@1","key":"meeting.draft_follow_up","version":1,"kind":"action","title":"Draft the follow-up","description":"Has Ken draft the follow-up email for a meeting once its notes are ready, written the way its call type says (goal, ask, tone, length, open times, promised material). Leave callType on auto to use the call type Ken picked for the meeting, or set a call type key to write it as that one. The draft waits for the meeting owner's approval in Today and on the meeting's Notes tab; this step itself never sends, but when the owner turned on auto-send in their Notetaker settings, Ken sends a draft for a meeting with no account once it passes Ken's quality review. A meeting that gets no follow-up (no notes, private, internal, the owner turned follow-ups off, the recipient is suppressed, or the call type sends no email) is skipped with a reason, and the workflow continues. Running it twice for one meeting returns the same follow-up. Returns status, reason, callType, kind and touchId. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"meeting_call_types"},{"kind":"flag","key":"meeting_follow_up"}],"inputSchema":{"type":"object","properties":{"meetingId":{"description":"The meeting to write the follow-up for. Use {{trigger.meetingId}} after a Meeting notes ready trigger.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"callType":{"description":"auto (the call type Ken picked, or the one a person chose), or a call type key from GET /v1/meeting-call-types, like discovery, networking or custom_board_update.","type":["string","null"],"default":null}},"required":["meetingId"]}},{"type":"notify.email@1","key":"notify.email","version":1,"kind":"action","title":"Email a teammate","description":"Emails a short plain-text notification to one or more members of the workspace and returns how many were sent and to whom. Use it to tell an owner about a new lead, a reply or a finished run. It can only mail active members of this workspace: a member id, the text owner for the member who published the workflow, or a list of them, at most 20. Any other value fails the step and nobody is mailed. Subject up to 200 characters, body up to 10,000. A member who turned off Emails from workflows in their notification settings is not mailed and is logged as skipped; when every recipient did, the step still succeeds with sent 0 and the steps after it run. Not retried automatically, because a retry could mail a member twice. A test run sends nothing. Free, within a workspace limit of 5,000 workflow emails a day (a tenth of that on the Free plan), which approval notices count toward too: past it nobody is mailed and the step waits for the limit to reset.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who to email: a member id, the text owner (the member who published this workflow), or a list of them. An id may be a number or numeric text, so a reference to a picked member works. Only active members of this workspace are mailed."},"subject":{"description":"Subject line, up to 200 characters after references are filled.","type":"string"},"body":{"description":"Plain text body, up to 10,000 characters after references are filled. Line breaks are kept; HTML is shown as text.","type":"string"}},"required":["to","subject","body"]}},{"type":"opportunity.revival_target@1","key":"opportunity.revival_target","version":1,"kind":"action","title":"Find the deal’s latest thread","description":"On a run about an account, such as trigger.opportunity_stage on a lost deal, finds whom to revive and on which thread. The person is personEmail (pass {{trigger.personEmail}}, the deal's person). Without one, role picks among the account's people: champion reads only its champion, any_stakeholder every stakeholder (the champion included) and keeps the latest reply among them; left out, the champion, else the first stakeholder. Ken takes each person's latest classified campaign reply in the workspace, from any of their lead rows, and keeps it only when that lead's account is the run's account. Returns found and, when true, contactId (the lead), messageId and threadId (the reply to answer), receivedAt, email and personSource (deal, champion or stakeholder); when false, reason no_thread. Pass contactId and messageId to lead.revival_check and reply.draft_in_thread, after a logic.filter on {{<node>.found}} == true. Needs the opportunities and lead_revival features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"personEmail":{"description":"The deal's person: {{trigger.personEmail}} on an opportunity stage run. Leave out, or let it be empty, to use the account's people as role says.","type":["string","null"],"default":null},"role":{"description":"Whose reply to find when personEmail is empty: champion (only the account's champion) or any_stakeholder (the latest reply from any of its stakeholders, the champion included). Leave it out for the champion, else the first stakeholder (priority, then the oldest).","type":["string","null"],"default":null,"enum":["champion","any_stakeholder",null]}}}},{"type":"opportunity.upsert@1","key":"opportunity.upsert","version":1,"kind":"action","title":"Create or update opportunity","description":"Creates or updates the opportunity (the deal) on the run's account (an account run, a person run, or a lead with an account). If the account has an open opportunity, the step moves it to stage and sets the fields you send; otherwise it opens one at that stage with source workflow, named after the account unless you send a name. stage is a key from the workspace pipeline (GET /v1/opportunity-stages), for example interested, meeting_booked, meeting_held, qualified, proposal, won or lost; won and lost close the deal. dealType is new_business, expansion or renewal (a new deal on a customer account defaults to expansion); lostReasonKey (no_budget, timing, competitor, went_quiet, not_a_fit or other) goes only with a lost stage. Use it to keep deals current, for example meeting_booked with an amount when a lead books a meeting. A stage or field a person set by hand is left alone unless overwritePinned is true. Needs the opportunities feature. Returns opportunityId, created, stage, stageCategory, changed and skippedPinned. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"}],"inputSchema":{"type":"object","properties":{"stage":{"description":"Stage key from the workspace pipeline (GET /v1/opportunity-stages), for example interested, meeting_booked, meeting_held, qualified, proposal, won or lost. A won or lost stage closes the opportunity.","type":"string"},"amount":{"description":"Deal value, 0 or more, in the workspace currency. Rounded to cents.","type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","default":null},"currency":{"description":"ISO 4217 code. Must be the workspace currency; omit it to use that currency.","type":["string","null"],"default":null},"closeDate":{"description":"Expected close date, YYYY-MM-DD.","type":["string","null"],"format":"date","default":null},"name":{"description":"Opportunity name, up to 300 characters. A new opportunity defaults to the account name.","type":["string","null"],"default":null},"nextStep":{"description":"Next step, up to 2000 characters.","type":["string","null"],"default":null},"ownerMemberId":{"description":"Owner: a member id of this workspace. A new opportunity defaults to the account owner.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"overwritePinned":{"description":"Also change the stage and fields a person set by hand. Default false: those are left as they are.","type":"boolean","default":false},"dealType":{"description":"new_business (New business), expansion (Expansion) or renewal (Renewal). A new opportunity defaults to expansion when the account is a customer (onboarding, client or churned), else new_business.","type":["string","null"],"default":null},"lostReasonKey":{"description":"Why the deal was lost: no_budget (No budget), timing (Timing), competitor (Chose a competitor), went_quiet (Went quiet), not_a_fit (Not a fit) or other (Other). Only with a lost stage.","type":["string","null"],"default":null}},"required":["stage"]}},{"type":"person.add_to_campaign@1","key":"person.add_to_campaign","version":1,"kind":"action","title":"Add to campaign","description":"Person and lead runs, in any workflow. Adds the run's person to the campaign campaignId as a new lead, into the segment you name (segment: its name or id; leave it out for the default segment). The segment you name sticks: the campaign's other segment rules and AI sorting leave the lead there (only that segment's own filter rules can still move it out). Everything the workflow saved on the person, such as a score or a written opener, travels with the lead as custom variables the campaign's emails can use. It adds like a lead upload of one person: dedup, the blocklist, lead credits and the contact allowance apply exactly as for an upload, and the step adds no workflow credits of its own. With skipIfInCampaign (default true) a person already in the campaign is left as it is. Running it again never adds the person twice. Out of lead credits, the step fails and the run waits in Needs attention until the workspace has credits. The step never sends: the campaign's own sequence does. Needs the workflows_plain feature. Returns added, campaignId, contactId, segment, reason (already_in_campaign, blocklisted, duplicate, excluded_country or invalid when nothing was added; limit when the lead was added but the contact allowance is used up) and detail. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_plain"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Campaign of this workspace to add the run's person to, for example 4120 or {{trigger.campaignId}}.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"segment":{"description":"Segment of that campaign a new lead goes into: the segment's name or id. Leave out for the campaign's default segment. The lead stays in the segment you name: the campaign's other segment rules and AI sorting do not move it out.","type":["string","null"],"default":null},"skipIfInCampaign":{"description":"True (the default): a person already in the campaign is left exactly as it is. False: the upload refreshes that lead's name, title and company, as a re-upload does. Either way nobody is added twice.","type":"boolean","default":true}},"required":["campaignId"]}},{"type":"person.intake@1","key":"person.intake","version":1,"kind":"action","title":"Create person","description":"Creates or updates a person from an email address through lead intake, as trigger.mailbox_label's createPerson does before a run: matches the workspace's person with that email or creates one on their company's account (created when the workspace allows it), with source inbound_email by default. Use it after a check, with when, so only the senders that pass become people: for example trigger.mailbox_label with createPerson false, then an ai step, then this step with email {{trigger.from}} and name {{trigger.fromName}}, then send.email with inReplyTo {{trigger.messageId}}. A run about no record becomes about this person, so send.email, account and person steps after it act on them; a run that already has a record keeps it and only gets the ids. A free-mail sender (gmail.com and the like) gets no account, so send.email cannot reach them; with createFreeMailAccount true, one with no account gets an account named after them, with no domain, as its stakeholder (a retry reuses it). Returns personId, accountId, created and runRecord. Waits and retries while lead_intake is off (needs attention) or the workspace's people intake quota is spent; an address intake refuses skips the step and the steps after it. A test run creates nobody and returns the example. Needs lead_intake. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_intake"}],"inputSchema":{"type":"object","properties":{"email":{"description":"Email address of the person to take, e.g. {{trigger.from}}.","type":["string","null"],"default":null},"name":{"description":"Their display name, e.g. {{trigger.fromName}}. Optional; intake splits it into first and last name.","type":["string","null"],"default":null},"source":{"description":"Person source stamped on a new person (first source) and as their latest source. Default inbound_email, as the mailbox label trigger stamps.","type":["string","null"],"default":null},"sourceDetail":{"description":"Detail shown with the source, e.g. the Gmail label name the mailbox label trigger stamps. Optional.","type":["string","null"],"default":null},"createFreeMailAccount":{"description":"True gives a free-mail sender (gmail.com and the like) who has no account one named after them, with no domain, and links them to it as a stakeholder, so send.email and account steps after it can act on them. Default false: a free-mail sender gets no account. Has no effect on a sender with a company domain or one who already has an account, nor while the workspace's intake settings create no accounts.","type":["boolean","null"],"default":null}}}},{"type":"person.research@1","key":"person.research","version":1,"kind":"data","title":"Research person (deep)","description":"Queues a deep research run on the run's person (a person run, or the person of a lead run): LinkedIn, the web, X, Instagram, Facebook, press and podcasts, written up for outreach. The step does not wait for the run; it shows on the person when it ends. Charged as it runs, on the web pages and searches it reads (WebScrape, about 4 credits a run). Free when the person has a deep research that succeeded within freshDays (30 by default), and a run already open is reused. A workspace's workflows start at most 200 deep runs a day; past that the step waits until the next UTC day (its message starts deferred) and tries again. A failure fails the step, and a spend limit with no room shows on the research run itself (spend_scope_exhausted), since the step does not wait. Needs accounts_research. Runs only inside a job with a spend limit (the LinkedIn connections enrich job); elsewhere it fails no_spend_scope. Returns status: queued or fresh, and researchId.","cost":{"free":false,"action":"WebScrape","actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_connections_enrich"},{"kind":"flag","key":"accounts_research"}],"inputSchema":{"type":"object","properties":{"freshDays":{"description":"Reuse a deep research of this person that succeeded within this many days, at no charge. 0 to 365, default 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":30,"minimum":0,"maximum":365}}}},{"type":"place.deliver@1","key":"place.deliver","version":1,"kind":"action","title":"Deliver the place","description":"Place runs only (a Google Maps place). Sends the place and the people found for it where the workflow says: destination accounts (an account with source google_maps for the place's website domain, the place's phone, address, rating, reviews, categories and Maps link as custom fields, and the found people as its people; no research charge), campaign (the found people with an email become leads of campaignId, or of the workflow's campaign, with the custom variables place_name, place_category, place_city, place_phone, place_rating, place_reviews and place_website) or both. Accounts and both need the workspace's accounts feature; campaign does not. Pass people as {{website.people}} and businessEmails as {{website.businessEmails}}. With businessContactFallback, a place where no found person has an email gets one business lead with its published mailbox (on the place's own domain, else at a free-mail provider) and contact_kind = business. A place with no website gets no account and reaches a campaign only through a business mailbox; the result lists what it skipped and why. Imports like any lead upload (dedup, blocklist, lead credits); running it again adds nobody twice. Marks the place processed for the workspace.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"destination":{"description":"Where the place goes: accounts (an account with its people), campaign (its people as leads) or both. Defaults to accounts.","type":"string","default":"accounts","enum":["accounts","campaign","both"]},"campaignId":{"description":"Campaign id (a decimal string) the people join. Defaults to the workflow's own campaign in a campaign workflow.","type":["string","null"],"default":null},"businessContactFallback":{"description":"When no person found at the place has an email, add one business lead with the place's published mailbox and contact_kind = business. A person the import refuses (a duplicate, a blocklisted address) still counts as found. Defaults to false.","type":"boolean","default":false},"people":{"description":"The people found for the place: {{website.people}} (or {{people.people}}). Each item needs personId.","type":["array","null"],"items":{"type":"object","properties":{"personId":{"description":"Id of a person in this workspace, as the website or people step returns it.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}}},"default":null},"businessEmails":{"description":"The place's published mailboxes: {{website.businessEmails}}. Only a mailbox on the place's own domain (or a subdomain) or at a free-mail provider can be the business lead, the place's own first; others are ignored.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"record.set_owner@1","key":"record.set_owner","version":1,"kind":"action","title":"Set the owner","description":"Makes a workspace member the owner of the run's lead, person or account, or of a deal. Use it after team.pick_member@1 to route an inbound lead, or to hand an account to the rep who booked the meeting. record picks which one (default: the run's own record, or the deal when dealId is set): on a lead run, person is the lead's linked person and account the lead's account; on a person run, account is the person's account. ifSet replace (default) sets the owner whoever owns it now; keep leaves a record that already has an owner alone. cascade on a lead also sets the lead's person and account when they have no owner, once the lead is the member's. The member must be an active member of this workspace (owner_not_member). Fails with owner_record_missing when the run has no such record, and record_not_found for a record of another workspace. A person, account or deal change shows on its timeline with actor workflow. Returns record, recordId, ownerMemberId, previousOwnerMemberId and changed. Free. A save to account.ownerMemberId or person.ownerMemberId leaves an owner a person set by hand alone, but a save to lead.ownerMemberId always replaces the lead's owner, because a lead does not record who set it: to leave a lead's owner alone, use this step with ifSet keep.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"memberId":{"description":"The member who becomes the owner: an active member of this workspace, as a literal id or a reference such as {{pick.memberId}}.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"record":{"description":"Whose owner to set: lead, person, account or deal. Leave it out for the run's own record (or the deal, when dealId is set). On a lead run, person is the lead's linked person and account is the lead's account; on a person run, account is the person's account.","type":["string","null"],"default":null,"enum":["lead","person","account","deal",null]},"dealId":{"description":"With record deal: the deal (opportunity) of this workspace, as a literal id or a reference such as {{deal.opportunityId}}.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"ifSet":{"description":"replace (default) sets the owner whoever owns the record now, a hand-set owner included. keep leaves a record that already has an owner as it is.","type":"string","default":"replace","enum":["replace","keep"]},"cascade":{"description":"Lead only: when the lead ends up owned by the member, also make the member the owner of the lead's person and account, each only when it has no owner yet. A lead that ifSet keep leaves with another owner cascades nothing.","type":"boolean","default":false}},"required":["memberId"]}},{"type":"reply.draft_in_thread@1","key":"reply.draft_in_thread","version":1,"kind":"action","title":"Draft a reply in the thread","description":"Drafts a short Ken follow-up (2 to 4 sentences) on the email thread a lead already answered, for a dead-lead revival: the follow-up they asked for, or a re-engagement after they went quiet. Use it after lead.revival_check says revivable, with messageId the lead's reply. The draft answers from the inbox that received the reply, or another inbox of the workspace on the same email domain. With approval required (the default) it goes in the thread's draft slot in the inbox, where a person reviews and sends it; the run waits until the reply is sent (event reply.sent, up to waitDays, default 14). With approval auto, once the workspace has 20 revivals a person approved and sent, Ken sends it after the reply undo window; before that auto waits for a person like required. A reply the reply agent sends on the thread does not end the wait. A wait that times out fails the step, so set onFailure continue on it. Pass reason (e.g. objection) and one sourced signal the draft may cite; a draft that names any other event (funding, a hire, a launch, news) is not used. followUp true writes the second, shorter nudge. Returns status sent with messageId, sentAt and approvedBy (person or auto) once sent, or status skipped with reason not_a_lead, message_not_found, no_inbox, suppressed, draft_failed, unsourced_claim or draft_slot_busy (a person's own draft is in the slot). A run about a lead, or about an account with contactId the lead at that account (opportunity.revival_target finds it). Needs the lead_revival feature. Costs one send credit per reply that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"messageId":{"description":"The lead's inbound reply to answer: {{trigger.messageId}} on a reply-triggered run, or {{<check>.messageId}} after lead.revival_check. Required.","type":"string"},"reason":{"description":"Why Ken follows up, in a few words, e.g. objection or \"lost: price\". The draft refers to it.","type":["string","null"],"default":null},"signal":{"description":"One sourced fact about the lead's company the draft may cite, such as a funding or hiring signal. Only this fact and the thread source a claim; a draft naming any other event is skipped (unsourced_claim).","type":["string","null"],"default":null},"followUp":{"description":"True for the second, shorter nudge on an earlier follow-up that got no answer. Default false.","type":"boolean","default":false},"approval":{"description":"\"required\" (default): the draft waits in the thread's draft slot for a person to send it. \"auto\": Ken sends it after the reply undo window, once the workspace has 20 revivals a person approved and sent; until then it waits for a person like required.","type":"string","default":"required"},"instructions":{"description":"Extra guidance for the draft, e.g. the tone or what to offer.","type":["string","null"],"default":null},"waitDays":{"description":"How many days the step waits for the reply to be sent, 1 to 30. Default 14.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"contactId":{"description":"On a run about an account, the lead whose reply this answers: {{<target>.contactId}} from opportunity.revival_target. Honored only when that lead's account is the run's account; any other lead skips the step (not_a_lead). Leave out on a run about a lead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["messageId"]}},{"type":"report.query@1","key":"report.query","version":1,"kind":"action","title":"Read a report","description":"Reads Kenso data for a digest: the workspace's workflow runs or its campaign replies over the last days, as rows or as counts. dataset is workflow_runs, replies, sends, opens, clicks, meetings or campaigns. windowDays (1 to 90, default 7) is how many whole UTC days to read, ending at the start of today. filters narrows the read: workflowId, status and isTest for workflow_runs; campaignId and classification for replies. groupBy returns { key, count } rows, largest first: status, workflow or day for workflow_runs; classification, campaign or day for replies. Without groupBy the rows are the newest runs or replies, up to limit (1 to 200, default 50); total is how many match and truncated says more exist. Replies are the ones a person wrote: bounces, automated mail and out-of-office are left out, and a grouped count is of distinct leads. Runs of Ken's own system workflows are left out. Read-only, so a test run reads for real. Free. Campaign datasets: sends (filters campaignId, channel; groupBy campaign, day or channel); opens (filters campaignId; groupBy campaign or day); clicks (filters campaignId; groupBy campaign or day); meetings (filters campaignId; groupBy campaign or day); campaigns (filters campaignId, status; groupBy none). Without groupBy a campaign dataset returns one totals row; with it, { key, count } rows, largest first, with id for a campaign; total is the main number over the whole window. campaigns instead returns one row per campaign with activity in the window, most sent first; total is how many campaigns match, and truncated says more exist past the 200 campaigns that contacted the most leads. Grouped by campaign, sends, clicks or meetings rank the 200 campaigns that contacted the most leads in the window, and truncated says more exist. sends counts email sends; filter channel linkedin for LinkedIn invites and messages, or group by channel for both. meetings rows are { booked, held }, campaign meetings booked and held; held is null, not 0, where the workspace does not track held meetings. meetings by day or campaign lists only those with bookings, and a day's held counts the meetings scheduled that day. campaigns rows and its status filter use the campaign list's words: active, draft, building, ready, paused, completed, error or archived. campaigns sent, delivered and bounced count email sends, as sends does; its replies and interested count LinkedIn replies too. opens or campaigns are estimates: the output says estimate: true.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"dataset":{"description":"What to read: workflow_runs, replies, sends, opens, clicks, meetings or campaigns.","type":"string","enum":["workflow_runs","replies","sends","opens","clicks","meetings","campaigns"]},"windowDays":{"description":"How many whole UTC days to read, ending at the start of today, 1 to 90. Default 7.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7,"minimum":1,"maximum":90},"filters":{"description":"Narrows the read. workflow_runs takes workflowId, status and isTest (default false); replies takes campaignId and classification.","type":["object","null"],"default":null},"groupBy":{"description":"Count instead of list: status, workflow or day for workflow_runs; classification, campaign or day for replies.","type":["string","null"],"default":null},"limit":{"description":"The most rows or groups to return, 1 to 200. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"minimum":1,"maximum":200}},"required":["dataset"]}},{"type":"send.email@1","key":"send.email","version":1,"kind":"action","title":"Send email","description":"Queues a 1:1 email to a person on the run's account (an account run, a person run, or a lead with an account). It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\" outside a meeting run: Ken approves it once its text is final and passed review, only in a workspace with the workflows_auto_send_email and workflows_auto_send flags), then the run waits until the email is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give subject and body to send your own text. Without a body the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it (workspaces with the accounts_writer flag) or a person writes it on the account; pass instructions to guide them. The run waits meanwhile. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account; needs attention when the account has no one in that role or the person has no email. Returns touchId, status (pending_approval or scheduled) and drafted. A touch the send pass fails (status failed) stays in Today for a retry, and the run keeps waiting until it is sent or the wait times out. When the workspace's Contact limits refuse the touch (the check an agent's POST /v1/touches gets), none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt, and the run goes on. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. Text that names an event (funding, a hire, a launch, news, an award) that no signal, dossier fact or research source on the account mentions creates no touch either: the step succeeds with status skipped and reason unsourced_claim, and the run goes on. With inReplyTo (the msg_ id of a stored email of the workspace) the touch answers that email inside its thread: it goes out as the Re: of that email with its In-Reply-To and References, the thread's subject replaces subject, and without to it goes to the person who sent that email (they must be on the run's account). It goes only to someone on that email (its sender, a To or a Cc), since it quotes that email; an unknown id, or a to who is not on it, fails the step message_not_found. fromInbox names the inbox to send from, by id or address; left out, the account's Sends from inbox or its owner's primary inbox sends it, and with inReplyTo the inbox that received that email. The inbox's owner approves the touch. A member's own mailbox sends, and its mail is answered, only for the person who published the workflow (inbox_not_owned otherwise); an unknown inbox fails inbox_not_found. In a workflow that a meeting trigger starts (trigger.meeting_booked@2, trigger.meeting_starts@1 or trigger.meeting_changed@1) the step is a meeting email: to \"meeting_guest\" (or to left out) is the meeting's guest, fromInbox \"meeting_host\" the host's own mailbox, and inReplyTo \"meeting_thread\" the newest email thread with the guest that the chosen mailbox may answer, else a new email. sendBy is the time after which the email is skipped instead of sent late (left out: the meeting's start, or 72 hours after the step runs for a meeting_changed run, 7 days after a cancel or a no-show with meeting_rebook_chase on). approval \"auto\" with a fixed subject and body (trigger and record fields only, never another step's output) sends without a person; an email Ken writes is reviewed first, except in a trigger.meeting_changed@1 workflow on only cancelled and no_show with meeting_rebook_chase on, where approval \"auto\" lets Ken's quality check approve it in place of a person. Only the email to the meeting's guest is a meeting email: it ignores the guest's do-not-contact flag, the account's stage (an archived account still gets none) and the Contact limits (and the send window, except after a cancel or a no-show with meeting_rebook_chase on), still honors unsubscribes, the blocklist and bounces, and creates no touch (status skipped) with reason meeting_cancelled, meeting_moved, meeting_started, send_by_passed, meeting_guest_missing or no_host_mailbox when the meeting or its time no longer fits, reschedule_note_planned when Ken's reschedule note or the reply agent's confirmation already tells the guest about the move, or reminder_handed_back when the booking's 24-hour reminder went back to Kenso's own reminder, or guest_rebooked or guest_replied when, after a cancel or a no-show, the guest booked again or replied, or guest_do_not_contact when the guest's cancel note asks not to be contacted again (trigger.doNotContact). An email in a meeting run to anyone else follows every normal rule and always waits for a person. These values are refused in any other workflow. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. Left out: economic_buyer, or with inReplyTo the person who sent that email (they must be on the run's account). With inReplyTo, only someone on that email (its sender, a To or a Cc). In a workflow a meeting trigger starts: \"meeting_guest\" for the meeting's guest, which is also who a left-out to means there.","type":["string","null"],"default":null},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\" works for a meeting email to the meeting's guest (a workflow whose triggers are all meeting triggers) with a fixed subject and body, written with trigger and record fields only, not another step's output: it then sends without a person. Any other email on \"auto\" sends without a person only in a workspace with the workflows_auto_send_email and workflows_auto_send flags, once its text is final (Ken's draft must pass its review); elsewhere it waits for a person, so \"auto\" works the same as \"required\" there. Publishing it on \"auto\" needs both flags.","type":"string","default":"required"},"subject":{"description":"Email subject. Leave out with body to let Ken's writer or a person draft it. With inReplyTo the email keeps its thread's subject (\"Re: \" and the email's subject), so the reply stays in the thread; a subject given here is replaced.","type":["string","null"],"default":null},"body":{"description":"Email body. Without a body the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever drafts the email when subject and body are not given. Stored on the touch.","type":["string","null"],"default":null},"fromInbox":{"description":"The inbox to send from: its id or its email address, an inbox of this workspace. A member's own mailbox only when the person who published the workflow owns it. Left out: the account's Sends from inbox, else a pool inbox (isAccountsSender; not for a meeting trigger's guest), else its owner's primary inbox; with inReplyTo, the inbox that received that email. In a workflow a meeting trigger starts: \"meeting_host\" for the meeting host's own mailbox.","type":["string","null"],"default":null},"inReplyTo":{"description":"The msg_ id of a stored email of this workspace to answer inside its thread: a message's id from the threads API (trigger.reply@1's messageId is the stored native id, not a msg_ id). The touch sends as the Re: in that thread, with In-Reply-To and References, from the inbox that received it unless fromInbox names another. An email in a member's own mailbox only for a workflow that member published. In a workflow a meeting trigger starts: \"meeting_thread\" replies in the newest email thread with the guest that the chosen mailbox may answer, else it is a new email.","type":["string","null"],"default":null},"sendBy":{"description":"Meeting emails only (a workflow whose triggers are all meeting triggers): the time after which the email is skipped instead of sent late, reason send_by_passed. An ISO time such as 2026-11-12T13:00:00Z, or one reference such as {{trigger.startsAt}}. Left out: the meeting's start, or 72 hours after the step runs in a trigger.meeting_changed@1 workflow (7 days after a cancel or a no-show with meeting_rebook_chase on).","type":["string","null"],"default":null}}}},{"type":"send.facebook@1","key":"send.facebook","version":1,"kind":"action","title":"Send on Facebook","description":"Queues a Facebook touch to a person on the run's account (an account run, a person run, or a lead with an account) from the account's Sends from Facebook account, else, when none is set, its owner's. `kind` picks it: message (a direct message), friend_request, follow, like (a like on a recent post) or comment (a comment on a recent post). It creates an Accounts touch that waits in Today for a person to approve it, then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The person needs a confirmed Facebook profile (find.facebook_profile@1 finds one); without one the step skips with reason no_facebook_profile and the run goes on. Give text to send your own words (kind message only). Without text the touch is created planned and waits for Ken's writer (the accounts_writer flag) or a person to write it; pass instructions to guide them. Friend request, follow, like and comment carry no text of yours and need Ken's writer, which puts them up for approval and writes a comment: with accounts_writer off they fail with accounts_writer_off. With the workspace's facebook_outreach flag off, every kind fails with facebook_outreach_off and creates no touch. A friend request carries no note. Below the account's mutual-friends minimum (10 by default), or when Facebook gives no mutual-friend count, Ken skips a friend request (status skipped) and creates a first message in its place; Ken's writer drafts that message and it then waits in Today for approval. To send an AI voice note with a message, give send.facebook@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Facebook sends a voice note only into a chat Kenso already has with the person, and then without the text; a first message sends the text alone. images (at most 4 touch image att_ ids from POST /v1/touch-images, kind message only) go after the text, each as its own message; an unknown id fails with image_not_found. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account. \"auto\" approval is accepted, but a Facebook touch still waits for a person in Today. When the workspace's Contact limits refuse the touch, none is created and the step succeeds at once with status skipped and reason contact_limit, as send.linkedin@1 does; text that names an event nothing on the account sources skips with reason unsourced_claim. Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"facebook_outreach"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The person needs a confirmed Facebook profile; one without is skipped (reason no_facebook_profile).","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\" is accepted, but a Facebook touch still waits for a person in Today, as an email does. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"kind":{"description":"\"message\" (default) for a direct message, \"friend_request\", \"follow\", \"like\" for a like on a recent post, or \"comment\" for a comment on a recent post. Friend request, follow, like and comment need Ken's writer (the accounts_writer flag). Below the account's mutual-friends minimum, or when Facebook gives no mutual-friend count, Ken skips a friend request and its writer drafts a first message in its place, which then waits in Today for approval.","type":"string","default":"message","enum":["message","friend_request","follow","like","comment"]},"text":{"description":"Message text, kind message only. Without text the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever writes the message or the comment. Stored on the touch.","type":["string","null"],"default":null},"images":{"description":"Touch image att_ ids (upload with POST /v1/touch-images) to send after the message, kind message only, at most 4, each its own message. An id that is not a touch image of this workspace fails the step (image_not_found).","type":["array","null"],"items":{"type":"string"},"default":null},"voiceNote":{"description":"An AI voice note for the message (kind message only): give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch; a note in any other status leaves a text-only touch. Facebook sends a voice note only into a chat Kenso already has with the person, and then without the text; a first message sends the text alone, so keep text or instructions here for that case. A voice note also needs the linkedin_voice_notes or whatsapp flag; imessage alone does not carry one here.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null}}}},{"type":"send.imessage@1","key":"send.imessage","version":1,"kind":"action","title":"Send iMessage","description":"Queues an iMessage text to a person on the run's account (an account run, a person run, or a lead with an account), sent from the workspace's iMessage line for that account. It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\": Ken approves it once its text is final and passed review, its voice note (if any) is ready and the person's number is known; a text that would answer the person in a conversation or go to a person who said no on any channel, or a first text with a link, email address, phone number or money amount, still waits for a person; publishing needs the workflows_auto_send flag), then the run waits until the touch settles (event touch.settled, up to 14 days): sent, skipped, deleted or failed. Unlike the email and LinkedIn send steps, the step ends and succeeds on each of them, with status and reason, so a later step can branch on {{text.status}} and reach the person by email or LinkedIn instead. Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The text goes to the person's mobile number. A person who opted out of phone contact (a STOP reply, a member's opt-out, or a do-not-call they asked for on a call) gets no touch: the step succeeds at once with status skipped, reason phone_opt_out and no touchId, and no number is looked for or charged. So does a person the send would still fail as suppressed once the step's own skip (below) let them through, mostly one at an account domain on the blocklist, or with a contact whose own email or company domain is on it: status skipped, reason suppressed:<reason> (suppressed:blocklisted, or suppressed:do_not_contact or suppressed:unsubscribed for a contact that skip did not match), no touchId. When the step creates the touch for a person with no number on file, Ken looks for one (each number found costs credits, like Find phone on a person); when none is found the touch is skipped with reason no_phone. A person a provider the workspace's own key asked flagged do not call gets no number looked for and no text written: the touch is skipped with reason do_not_call (a text a member approves still goes on a thread where the person has written). Give text to send your own words. Without text the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it or a person writes it on the account; pass instructions to guide them. A first text to someone who has not replied is plain words only: no links, email addresses, phone numbers or money amounts, and no images. images takes up to 10 https image links or ids of images uploaded to Kenso; they go once the person has replied. To send an AI voice note, give send.imessage@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note); a bare or nested voiceNoteId is an error at validate, test run and publish. A voice note goes only once the person has replied on an iMessage (not SMS) thread: for anyone else the voice note step fails at once, unwritten and uncharged (recipient_must_reply or sms_thread), and the text goes alone, with either approval. A text carries images or a voice note, not both: a step with both is an error at validate, test run and publish. The step itself is skipped, with no output, when the person has a contact marked do-not-contact or unsubscribed (do_not_contact), their own email or its domain is on the blocklist (contact_blocked), or they are marked not_targeted on the account. When the workspace's Contact limits refuse the touch, none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. The line's own daily cap, ramp-up and new-conversation limit are not Contact limits: a text over one is held at send time until the line has room (imessage_line_limit) and the run keeps waiting. Text that names an event (funding, a hire, a launch, news, an award) that nothing on the account sources creates no touch either: status skipped, reason unsourced_claim. A member who retries a failed text in Today still sends it after the step has moved on. Costs one send credit per text that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"imessage"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The text goes to their mobile number; with none on file, Ken looks for one first. A person who opted out of phone contact gets no touch and no look (reason phone_opt_out).","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review), its voice note (if any) is ready and the person's mobile number is known. A voice note is made only for a person who replied on an iMessage (not SMS) thread, so with either approval a text to anyone else goes alone. A text that would answer the person in a conversation or go to a person who said no on any channel, or a first text with a link, email address, phone number or money amount, still waits for a person. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"text":{"description":"The text to send, written the way one person texts another. Without text the touch is created planned and is not in Today until Ken's writer or a person writes it on the account; the run waits meanwhile. A first text to someone who has not replied yet carries no links, email addresses, phone numbers or money amounts. At most 4,096 characters: a longer fixed text is an error (imessage_text_too_long) when the workflow is validated, test-run or published, and a draft save keeps it as it keeps every other step error; a text with a {{...}} reference is checked when it is sent.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever writes the text when text is not given. Stored on the touch.","type":["string","null"],"default":null},"voiceNote":{"description":"An AI voice note to send as an iMessage audio message: give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is an error when the workflow is validated, test-run or published. A voice note goes only once the person has replied on an iMessage (not SMS) thread: for anyone else the voice note step fails at once, unwritten and uncharged, with failureReason recipient_must_reply or sms_thread, and the touch is text only, with either approval. A ready note goes on the touch, so the person approving it in Today can play it first. A note in any other status leaves a text-only touch. A note of another workspace or run, or about another person, needs attention. Not with images: a text carries images or a voice note, not both.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"images":{"description":"Up to 10 images to send with the text: https links, or ids of images uploaded to Kenso for iMessage. A link is stored as given and fetched when the text goes out. Images go only once the person has replied; on a first text Kenso sends the words alone. Not with voiceNote: a text carries images or a voice note, not both.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":10}}}},{"type":"send.instagram@1","key":"send.instagram","version":1,"kind":"action","title":"Send on Instagram","description":"Queues an Instagram touch to a person on the run's account (an account run, a person run, or a lead with an account). It sends from instagramAccountId, else the account's Sends from Instagram account, else the one its owner connected. `kind` picks it: dm (a direct message), follow, like (a like on a recent post) or comment (a comment on a recent post). It creates an Accounts touch that waits in Today for a person to approve it, then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. The person needs an accepted Instagram handle (data.find_instagram@1 finds candidates, a person accepts one); without one the step needs attention. Give text to send your own words (kind dm only; never with follow, like or comment: Ken writes a comment from instructions once it picks the post). Without text the touch is created planned and waits for Ken's writer or a person to write it; pass instructions and Ken writes from them. A DM can carry up to 3 images (att_ ids of images uploaded for Instagram) and an AI voice note: give send.instagram@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note), made with channel \"instagram\" so it is an m4a. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account. \"auto\" approval is accepted, but an Instagram touch still waits for a person in Today. When the workspace's Contact limits refuse the touch, none is created and the step succeeds at once with status skipped and reason contact_limit, as send.linkedin@1 does; text that names an event nothing on the account sources skips with reason unsourced_claim. A DM the person does not accept from accounts they do not follow fails the touch (recipient_refused), and a like or comment with no recent post Kenso can read is skipped (no_recent_post). Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. There is no threadRef output: later steps use touchId. A DM or a comment costs one send credit once it is sent, charged when the send is confirmed; follows and likes are free. Needs the accounts and instagram features.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"instagram"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id. The person needs an accepted Instagram handle (verified or set by hand); one without fails the step as needs attention.","type":"string"},"approval":{"description":"\"required\": the touch waits in Today for a person to approve it. \"auto\" is accepted, but an Instagram touch still waits for a person in Today. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string"},"kind":{"description":"\"dm\" for a direct message, \"follow\", \"like\" for a like on a recent post, or \"comment\" for a comment on a recent post. A like or comment with no recent post Kenso can read is skipped (reason no_recent_post). Follows and likes are free.","type":"string","enum":["dm","follow","like","comment"]},"text":{"description":"The DM, fixed or with {{references}} (kind dm only). Not with follow, like or comment: Ken writes a comment from instructions once it picks the post. Without text the touch is created planned and waits for Ken's writer or a person to write it; give instructions to guide them.","type":["string","null"],"default":null},"instructions":{"description":"What Ken should write when text is empty: Ken drafts the DM or the comment from these and the person's context. Stored on the touch and given to Ken's writer as their own section.","type":["string","null"],"default":null},"images":{"description":"Up to 3 att_ ids of images uploaded for Instagram, sent with the DM (kind dm only).","type":["array","null"],"items":{"type":"string"},"default":null},"voiceNote":{"description":"An AI voice note for the DM (kind dm only): give it the whole ai.voice_note step about the same person, made with channel \"instagram\" so the note is an m4a, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch; a note in any other status leaves a text-only touch. A voice note needs the instagram and linkedin_voice_notes features.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"instagramAccountId":{"description":"Send from this Instagram account id of the workspace. Leave it out for the account's Sends from Instagram account, else the one its owner connected.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["to","approval","kind"]}},{"type":"send.linkedin@1","key":"send.linkedin","version":1,"kind":"action","title":"Send LinkedIn message","description":"Queues a LinkedIn message or connection request to a person on the run's account (an account run, a person run, or a lead with an account). `kind` picks which: message or connect. It creates an Accounts touch that waits in Today for a person to approve it (approval \"auto\": Ken approves it once its text is final and passed review; publishing needs the workflows_auto_send flag), then the run waits until it is sent (event touch.sent, up to 14 days). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give text to send your own words (the note of a connection request). Without text the touch is created planned (drafted false) and is not in Today until Ken's writer drafts it (workspaces with the accounts_writer flag) or a person writes it on the account; pass instructions to guide them. The run waits meanwhile. Skipped when the person is do-not-contact, blocklisted or marked not_targeted on the account; needs attention when the account has no one in that role or the person has no LinkedIn URL. In a run a meeting trigger starts, the touch to the meeting's guest ignores the guest's do-not-contact flag, not_targeted mark, the account's stage (an archived account still gets none) and the Contact limits, and still honors the blocklist; after a cancel whose note asks not to be contacted (trigger.doNotContact) the guest gets none (status skipped, reason guest_do_not_contact); anyone else follows every rule here. Returns touchId, status (pending_approval or scheduled), drafted, and voiceNoteId when the touch carries a voice note. To send an AI voice note with the message (kind message only), give send.linkedin@1 the whole ai.voice_note step of the same run about the same person as voiceNote (\"voiceNote\": \"{{note}}\" for a voice note step with id note); a bare or nested voiceNoteId is refused at save. A ready note goes on the touch so Today plays it before approval, a note that is not ready leaves a text-only touch, and a note of another workspace, run or person needs attention. A touch the send pass fails (status failed) stays in Today for a retry, and the run keeps waiting until it is sent or the wait times out. When the workspace's Contact limits refuse the touch (the check an agent's POST /v1/touches gets), none is created: the step succeeds at once with status skipped, reason contact_limit, the rule, the guardrail's message and nextAllowedAt, and the run goes on. A refusal by the send window's days (agent_send_window) is deferred instead: the touch is created due at the window's start (08:00 America/New_York by default) on the first later day the window allows, at most 7 days out, the output's deferredUntil says so and the 14-day wait counts from then; refused again then, the step skips as above. An open opportunity refusal is never deferred. Text that names an event (funding, a hire, a launch, news, an award) that no signal, dossier fact or research source on the account mentions creates no touch either: the step succeeds with status skipped and reason unsourced_claim, and the run goes on. Costs one send credit per touch that is sent, charged when the send is confirmed.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who receives it: a committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown), \"record\" for the run's person, or a person id.","type":"string","default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review) and its voice note is ready. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":"string","default":"required"},"kind":{"description":"\"message\" (default) for a direct message, \"connect\" for a connection request.","type":"string","default":"message"},"text":{"description":"Message text, or the note of a connection request. Without text the touch is created planned and is not in Today until Ken's writer (the accounts_writer flag) or a person writes it on the account; the run waits meanwhile.","type":["string","null"],"default":null},"instructions":{"description":"Guidance for whoever drafts the message when text is not given. Stored on the touch.","type":["string","null"],"default":null},"voiceNote":{"description":"An AI voice note to send with the message (kind message only): give it the whole ai.voice_note step about the same person, \"voiceNote\": \"{{note}}\" for a voice note step with id note. A bare {{note.voiceNoteId}} or a nested { \"voiceNoteId\": ... } object is refused when the workflow is validated or saved. A ready note goes on the touch, so the person approving it in Today can play it first. A note in any other status leaves a text-only touch. A note of another workspace or run, or about another person, needs attention. The text is the fallback: write it as the message to send if the voice note cannot go.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null}}}},{"type":"send.whatsapp@1","key":"send.whatsapp","version":1,"kind":"action","title":"Send WhatsApp message","description":"Queues a WhatsApp message to a person on the run's account (an account run, a person run, or a lead with an account). It creates an Accounts touch, then the run waits until it is sent (event touch.sent, up to 14 days) or will not be sent (touch.not_sent). Pick the recipient with `to`: a committee role such as economic_buyer, \"record\" for the run's person, or a person id. Give exactly one of text (your words, {{references}} allowed), instructions (Ken writes it in the person's language) or templateId with templateMode (as_is: the template's words, personalize: Ken rewrites it for the person). images adds up to 6 uploaded images; voiceNote (an ai.voice_note@1 step of this run, given whole) or voiceId (Ken reads the text aloud) sends a voice note. Ken finds the person's WhatsApp number before the send (findNumber false: only free numbers). from picks the WhatsApp account. approval \"required\" (default) waits in Today for a person; \"auto\" is approved by Ken once the text is final and passed review, the voice note is ready and the number is found, and needs the workflows_auto_send flag to publish. Returns touchId, status and, when it was not sent, reason: no_phone, not_on_whatsapp, opted_out, country_blocked, unanswered_limit or contact_limit, so the workflow can branch on {{<step id>.reason}}. Needs the accounts and whatsapp features. Charged per sent message.","cost":{"free":false,"action":"WorkflowSend","actionByTier":null,"chargeOn":"result","freeOnCustomerKey":false},"sideEffects":"send","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"accounts"},{"kind":"flag","key":"whatsapp"}],"inputSchema":{"type":"object","properties":{"to":{"description":"Who gets the message: a committee role such as economic_buyer, \"record\" for the run's person, or a person id.","type":["string","null"],"default":"economic_buyer"},"approval":{"description":"\"required\" (default): the touch waits in Today for a person to approve it. \"auto\": Ken approves it without a person once its text is final (Ken's draft must pass its review), its voice note is ready and its number is found. Publishing a workflow with \"auto\" needs the workspace's workflows_auto_send flag.","type":["string","null"],"default":"required"},"text":{"description":"The message, fixed or with {{references}}. Give exactly one of text, instructions or templateId.","type":["string","null"],"default":null},"instructions":{"description":"What Ken should write: Ken drafts the message from the person's context in their language. Give exactly one of text, instructions or templateId.","type":["string","null"],"default":null},"templateId":{"description":"A message template id. Give exactly one of text, instructions or templateId.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"templateMode":{"description":"as_is (default): send the template's words with its variables filled in. personalize: Ken rewrites the template for the person, keeping its offer, order and links.","type":["string","null"],"default":null},"images":{"description":"Up to 6 uploaded image media ids sent with the message.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"voiceNote":{"description":"An ai.voice_note@1 step of this run about the same person, given whole: \"voiceNote\": \"{{note}}\". Sent as a voice note with the message.","type":["object","null"],"properties":{"voiceNoteId":{"description":"The voice note's id, read from the ai.voice_note step that voiceNote names as a whole (\"voiceNote\": \"{{note}}\" for a voice note step with id note). Never bind it on its own: a nested or bare voiceNoteId is refused when the workflow is validated or saved.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["voiceNoteId"],"default":null},"voiceId":{"description":"A voice id: Ken reads the final text aloud in this voice and sends it as a voice note. Use voiceNote or voiceId, not both.","type":["string","null"],"default":null},"voiceProvider":{"description":"The voiceId's provider: elevenlabs (default) or deepgram.","type":["string","null"],"default":null},"findNumber":{"description":"Pay to find a number when none is free. Default true.","type":"boolean","default":true},"from":{"description":"Send from this WhatsApp account id. Leave out for the account's Sends from WhatsApp account, else the account owner's.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"slack.message@1","key":"slack.message","version":1,"kind":"action","title":"Post to Slack","description":"Posts a message to a Slack channel as the workspace's Kenso Slack bot and returns the message ts and channel id. Use it to alert a team about a hot lead, a reply or a finished run. Needs the Slack app connected in the workspace; until it is, the step fails with a setup error. Not retried automatically: Slack does not drop duplicate posts, so a retry could post the message twice. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"app","key":"slack"}],"inputSchema":{"type":"object","properties":{"channel":{"description":"Channel id (C0123456789) or name (#sales-alerts). The Kenso bot must be a member of private channels.","type":"string"},"text":{"description":"Message text (Slack mrkdwn). Also the notification text when blocks are set. Values from {{references}} are escaped, so run data cannot add mentions or links.","type":"string"},"blocks":{"description":"Optional Slack Block Kit blocks, written as literal JSON. References inside their strings are escaped; a reference cannot supply a block or a whole list.","type":["array","null"],"default":null},"threadTs":{"description":"Reply in this thread: the ts of the parent message.","type":["string","null"],"default":null}},"required":["channel","text"]}},{"type":"studio.page@1","key":"studio.page","version":1,"kind":"action","title":"Build Studio page","description":"Fills a Studio page for the run's account and returns the person's tracked link to it. One page per account and template: a later run refills the same page, a live page keeps its links. to picks the person (\"record\", the default, a committee role or a person id); slots prefills slot values, for example {\"intro\": \"{{grade.body}}\"}, checked against each slot's schema, and a recipe step whose every slot is prefilled is skipped. The run waits for the fill without holding a worker (waitMinutes, default 30, at most 120). The link is made only when the page is ready (every grade passed): status ready with url, previewUrl, slotStatus and charged (true when the link was the page's first). A page that needs review or failed ends the step with status needs_review and no url, and onFailure decides what happens next. Costs what Studio charges: the fill's data and model credits, plus 1 credit for the page's first link. Test runs return the example output and fill nothing. Needs the Studio and Accounts features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"studio"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"templateId":{"description":"The Studio template to fill: a published page or doc template of the workspace. Pick it from GET /v1/asset-templates.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"to":{"description":"Who the link is for: \"record\" (the run's person, the default), a committee role such as economic_buyer (its top priority stakeholder), or a person id. The person must be a live stakeholder of the run's account.","type":["string","null"],"default":null},"slots":{"description":"Optional slot values the page starts with, slot name to value, for example {\"intro\": \"{{grade.body}}\"}. Each is checked against the slot's schema like a fill's own value; a bad one fails that slot and the page shows its fallback. A recipe step whose every slot is given here is skipped, and later prompts read the given value. Unknown slots are dropped with a warning. List the template's slots, with their types, from GET /v1/asset-templates/{templateId}/slots.","type":["object","null"],"default":null},"executor":{"description":"Who fills the page: ken (the default and the only executor a workflow runs).","type":["string","null"],"default":null},"waitMinutes":{"description":"How long the step waits for the fill, in minutes: 1 to 120, default 30. The run waits without holding a worker; past it the step fails.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["templateId"]}},{"type":"system.ai_flow@1","key":"system.ai_flow","version":1,"kind":"ai","title":"AI flow (system)","description":"Kenso's own AI pipeline only (system workflows): asks the model what the old AI flow job (flow: qualification, personalization or segmentation) would ask for the run's lead, and parses the answer as that job does. Charges nothing. A live run spools the chat model's request into the job's vendor batch and waits for ai_batch.completed; the batch poller writes that result, system.ai_save writes any other. Returns the provider, model, token counts and the parsed answer: qualification { qualified, score, reasoning }, personalization { lines: [ { promptId, text } ] }, segmentation { segmentId, segmentName, reasoning, fallback }.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"flow":{"description":"The old AI flow to run for the contact: qualification, personalization or segmentation.","type":"string"}},"required":["flow"]}},{"type":"system.ai_save@1","key":"system.ai_save","version":1,"kind":"data","title":"Save AI flow result (system)","description":"Kenso's own AI pipeline only (system workflows): writes a system.ai_flow result for the run's lead as the old AI flow job (flow: qualification, personalization or segmentation) writes it: the qualification verdict, the personalization lines or the segment. Returns whether it was written and, when not, why.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"flow":{"description":"The old AI flow whose result this is: qualification, personalization or segmentation.","type":"string"},"result":{"description":"The system.ai_flow@1 output to write.","type":"object"}},"required":["flow","result"]}},{"type":"system.linkedin_action@1","key":"system.linkedin_action","version":1,"kind":"action","title":"LinkedIn action","description":"Kenso's own LinkedIn sequences only (system workflows): takes one due LinkedIn state of the run's lead and does what the LinkedIn action scheduler would do with it: the next sequence action (visit, invite, message, InMail, withdraw) from the lane's seat under its caps, spacing and working hours, a skip, or a defer. A shadow run only decides and writes nothing; a live run acts through the scheduler's own path (seat lock, idempotency key, reconciliation of an unknown result). Returns the decision, its reason and, live, the execution outcome.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"stateId":{"description":"The due contact_linkedin_state row of the run's lead ({{trigger.stateId}}).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"stepOrder":{"description":"The state's step when the run started ({{trigger.stepOrder}}).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"dueAt":{"description":"The state's due time when the run started ({{trigger.dueAt}}); null for a state with none.","type":["string","null"],"format":"date-time"}},"required":["stateId","stepOrder"]}},{"type":"system.send_plan@1","key":"system.send_plan","version":1,"kind":"data","title":"Plan sends","description":"Kenso's own send planning only (system workflows): runs the gap-fill planner for the run's workspace as it runs every 10 minutes. A shadow run collects the rows it would insert into the send queue instead of writing them; a live run inserts them, only once Kenso has moved the workspace's send planning to the engine. Returns the workspace's done, target and shortfall, each campaign's target and limiter, the skip counts, how many rows it would insert (or inserted) and, for a shadow run, the rows themselves (capped).","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object"}},{"type":"system.trigger_evaluate@1","key":"system.trigger_evaluate","version":1,"kind":"data","title":"Evaluate the campaign trigger","description":"Kenso's own campaign triggers only (system workflows): evaluates the signal of {{trigger.*}} against campaign trigger `definitionId` exactly as the trigger evaluation job does: test signals only for test campaigns, the trigger's audience filter, its parameters, its per-lead cooldown and the firing's dedup key. A shadow run decides without writing (would_fire); a live run inserts the firing the trigger's fast lane then queues, only once Kenso has moved the workspace's campaign triggers to the engine. Returns the outcome and the firing's dedup key.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"definitionId":{"description":"The campaign trigger (trigger_definition id) to evaluate.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"signalId":{"description":"Id of the signal.","type":"string"},"signalType":{"description":"The signal's type name, e.g. LinkClicked.","type":"string"},"source":{"description":"The signal's source name, e.g. InternalEmailEngagement.","type":"string"},"contactId":{"description":"The lead the signal is about.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"campaignId":{"description":"The lead's campaign, when the signal names one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"campaignSegmentId":{"description":"The lead's campaign segment, when the signal names one.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"payloadJson":{"description":"The signal's own details as JSON text.","type":["string","null"]},"synthetic":{"description":"A test signal.","type":"boolean"},"occurredAt":{"description":"When the signal happened (UTC).","type":"string","format":"date-time"},"ingestedAt":{"description":"When the signal reached the stream (UTC).","type":"string","format":"date-time"},"signalDedupKey":{"description":"The signal's own idempotency key.","type":"string"}},"required":["definitionId","signalId","signalType","source","contactId","synthetic","occurredAt","ingestedAt","signalDedupKey"]}},{"type":"table.delete@1","key":"table.delete","version":1,"kind":"action","title":"Delete table rows","description":"Deletes rows from a workspace data table, one row by its key or every row that meets the conditions. Set key (each key column with its value) or where, never both; an empty where deletes nothing and fails the step. Returns deleted, the number of rows removed, which is 0 when nothing matched. A table the workspace does not have is a setup error. In a test run it deletes test rows only, so a test never removes a real row.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"key":{"description":"The key of the one row to delete: every key column of the table with its value. Set this or where, not both.","type":["object","null"],"default":null},"where":{"description":"Conditions for the rows to delete, all of them, at most 10. Set this or key, not both.","type":["array","null"],"items":{"type":"object","properties":{"column":{"description":"The column to compare.","type":"string"},"op":{"description":"How to compare: eq, ne, gt, gte, lt, lte, contains, in, is_empty or is_not_empty.","type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","in","is_empty","is_not_empty"]},"value":{"default":null}},"required":["column","op"]},"default":null}},"required":["table"]}},{"type":"table.find@1","key":"table.find","version":1,"kind":"action","title":"Look up table rows","description":"Looks up rows in a workspace data table. Conditions in where are joined by and; sort orders the rows and limit caps them at 200. Returns rows, count, found and first, so a filter on found branches on whether anything matched. Set aggregate to also get count, sum, min, max or avg over every matching row, not only the rows returned. A table the workspace does not have is a setup error. In a test run it also reads the rows earlier test runs saved.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"where":{"description":"Conditions a row must meet, all of them, at most 10. Left out: every row.","type":["array","null"],"items":{"type":"object","properties":{"column":{"description":"The column to compare.","type":"string"},"op":{"description":"How to compare: eq, ne, gt, gte, lt, lte, contains, in, is_empty or is_not_empty.","type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","in","is_empty","is_not_empty"]},"value":{"default":null}},"required":["column","op"]},"default":null},"sort":{"description":"A column name to sort by, or -column for descending. Left out: the order rows were added.","type":["string","null"],"default":null},"limit":{"description":"The most rows to return, 1 to 200. Default 50.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":50,"minimum":1,"maximum":200},"aggregate":{"description":"A number computed over every row that meets the conditions, not only the rows returned.","type":["object","null"],"properties":{"function":{"description":"What to compute: count, sum, min, max or avg.","type":"string","enum":["count","sum","min","max","avg"]},"column":{"description":"The number column to read. Needed for all but count.","type":["string","null"],"default":null}},"required":["function"],"default":null}},"required":["table"]}},{"type":"table.upsert@1","key":"table.upsert","version":1,"kind":"action","title":"Save to table","description":"Saves a row to a workspace data table and says whether it was new. Rows with the same key columns are one row: the first run creates it and a later run updates it or leaves it unchanged, so a filter on created acts once per key across runs. A table with no key always adds a row. Returns result (created, updated or unchanged), the three flags, rowId and the row as stored. A table the workspace does not have is a setup error: the run waits until the table exists. In a test run it writes test rows only, which real runs never read and which are removed after 24 hours.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"table":{"description":"The table's name, for example inbound_leads.","type":"string"},"row":{"description":"The row to save: column name to value. It holds every key column of the table.","type":"object"}},"required":["table","row"]}},{"type":"team.pick_member@1","key":"team.pick_member","version":1,"kind":"action","title":"Pick a teammate","description":"Picks one workspace member, in turn, by lightest recent load or at random, and returns that member's id, name and email. Use it to give an inbound lead an owner before a notification or an approval. Candidates are the listed members plus the members holding one of the listed roles (admin, editor, member, client, network_member); with neither, every member who can edit workflows. At most 50 candidates, lowest ids first. The rotation is kept per workflow and key, so steps with different keys rotate on their own. A retried step run returns the member it picked before. Fails with a setup error when there is no member to pick. A test run picks without recording. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"strategy":{"description":"How to pick: round_robin takes the member picked longest ago, least_loaded the member with the fewest picks in the last 7 days, random any of them.","type":"string","default":"round_robin","enum":["round_robin","least_loaded","random"]},"members":{"description":"Member ids to pick from, written as literal ids. Only active members of this workspace count.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"roles":{"description":"Also pick from members holding one of these workspace roles: admin, editor, member, client or network_member.","type":["array","null"],"items":{"type":"string"},"default":null},"key":{"description":"Names the rotation inside this workflow. Steps with the same key share one rotation; leave it empty for the workflow's default rotation.","type":"string","default":""}}}},{"type":"trigger.account_changed@1","key":"trigger.account_changed","version":1,"kind":"trigger","title":"Account changed","description":"Starts a run when an account in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (name, domain, industry, employeeCount, tier, type, customer, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. A domain added to or removed from the account later reports domain, with the domain it added (to) or removed (from). Stage moves are trigger.account_stage@1, and changes in a connected CRM are trigger.crm_record_changed@1. The run is about the account (record account). {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.account_hot@1","key":"trigger.account_hot","version":1,"kind":"trigger","title":"Account turned hot","description":"Starts a run when an account turns hot: a new signal lifts its signal score from below the workspace's Tier 1 floor (Knowledge > Tiers, 65 by default) to at or above it. It fires once per climb: the score has to fall below the floor before it fires again, and editing the signal points or merging accounts never fires it. It needs the workflows_account_hot feature, which is off until it is turned on for the workspace: until then a workflow with it saves as a draft but cannot be published. The run is about that account (record account). {{trigger.accountId}} is the account, {{trigger.score}} its signal score and {{trigger.reason}} why now (the account's why-now, else its latest signal). Set minScore to react only to scores at or above it, and oncePerRecordDays to start at most one run per account in that many days. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_account_hot"}],"inputSchema":{"type":"object","properties":{"minScore":{"description":"Only accounts whose score is at least this. Leave out for every account that reaches Tier 1.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"oncePerRecordDays":{"description":"Start at most one run per account every this many days. Leave out to run each time the account reaches Tier 1 again.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.account_stage@1","key":"trigger.account_stage","version":1,"kind":"trigger","title":"Account stage changed","description":"Starts a run when an account moves into one of the chosen stages (new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact), whoever moved it: a person, an agent, the API, a workflow or Ken (lost follows the deal, onboarding a won deal). Set from to react only to moves out of one stage. The run is about that account (record account). {{trigger.accountId}} is the account, {{trigger.stage}} the new stage, {{trigger.previousStage}} the old one and {{trigger.actorKind}} who moved it. A workflow that sets the stage itself can start its own trigger again, so pick stages that do not loop. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"stages":{"description":"Stages that start a run when an account moves into them: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact. At least one.","type":"array","items":{"type":"string"}},"from":{"description":"Only moves out of this stage. Leave out for a move from any stage.","type":["string","null"],"default":null}},"required":["stages"]}},{"type":"trigger.apollo@1","key":"trigger.apollo","version":1,"kind":"trigger","title":"Apollo list","description":"Runs the contacts of one of the workspace's Apollo lists through the workflow, on the workspace's own Apollo key (Settings > Integrations; Kenso has no Apollo key). Name the list in `listId` (GET /v1/integrations/apollo/lists lists the workspace's contacts lists). A Bulk import source: its `schedule` is {\"every\": \"once\"}, day or week. Each read pages the list from the contact created last in Apollo, up to Apollo's 50,000: on a bigger list, an older contact added to the list lately can sort past that cap and is not read. Each contact is matched in the workspace's people by email or LinkedIn URL, or added (source workflow, on no account; its name, title and phone kept, with the custom fields company_domain and company_name filled where blank), and starts one run. A contact with no name, or with neither an email Apollo has unlocked nor a LinkedIn URL, is skipped. A person runs at most once from the workflow's Apollo sources, so a daily or weekly read runs only the contacts added to the list since, and publishing again does not run the same contacts again. Reading the list costs no Kenso credits and no Apollo credits (Apollo's rate limits apply to the key); the run's steps charge as usual. Without a usable Apollo key, when Apollo refuses the key (401 or 403), or when the workspace's Apollo account no longer has the list, the trigger fails. Save a master Apollo key: the same key runs Kenso's Apollo email finder (people/match), so a key limited to the list endpoints stops working for both. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources and Accounts features; publishing it needs Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"listId":{"description":"The Apollo contacts list to read, by its Apollo id (GET /v1/integrations/apollo/lists), at most 64 characters.","type":["string","null"],"default":null}}}},{"type":"trigger.campaign_leads@1","key":"trigger.campaign_leads","version":1,"kind":"trigger","title":"Leads added to this campaign","description":"Collects the leads added to a campaign, usually every hour, and runs them through the workflow as one batch: the Leads tab, the API, Ask Ken, imports, any way a lead joins the campaign. The campaign is `campaignId` and the cadence the source's `schedule`. The first read, when the workflow is published, starts from the leads the campaign has then, which are not backfilled; each later read takes only the leads added since the last one, and republishing carries on where the last version stopped. A lead runs once: a lead this workflow already ran on, or one the workflow's own steps added to a campaign (add to campaign, place delivery, campaign refill), starts no run. A Bulk import campaign workflow always has one for its own campaign, every hour. A Bulk import source: it needs a repeating `schedule` (hour, day or week; once would never collect a lead). The run is about that lead: {{lead.*}} holds its fields, {{trigger.recordId}} is its id and {{trigger.scheduledFor}} the slot that read it. Free. Needs the workflow sources feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The campaign whose new leads the source collects. In a campaign workflow, Kenso sets it to the workflow's own campaign.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["campaignId"]}},{"type":"trigger.champion_moved@1","key":"trigger.champion_moved","version":1,"kind":"trigger","title":"Champion changed jobs","description":"Starts a run when a past champion starts at a new company (Kenso Search re-check). Ken adds the company to Accounts, maps the champion on it and stores the signal; reaching out is up to the workflow. The workspace's \"Champion changed jobs\" workflow plans the LinkedIn note with reachableOnly true, so a second workflow that messages the champion sends a second note. A send step acts on the new company's account (accountId), so to \"record\" reaches the champion there; account fields and other account steps still read the person's first account. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"leadersOnly":{"description":"true: only when the new title is a revenue or finance leader role (VP Sales, VP RevOps, CRO, CFO). Leave out for every move.","type":["boolean","null"],"default":null},"reachableOnly":{"description":"true: only moves Ken may reach out on (reachable true). Leave out for every move, for steps that do not contact the champion.","type":["boolean","null"],"default":null}}}},{"type":"trigger.crm_list@1","key":"trigger.crm_list","version":1,"kind":"trigger","title":"New lead from a CRM list","description":"Starts one run for every contact the CRM list import adds to a Kenso campaign. Pick a CRM list (`listId`: a HubSpot list, a Salesforce Campaign) and the campaign (`campaignId`), and the list is imported into the campaign every 15 minutes. Leads already in the campaign when the workflow is published are not backfilled, but publishing starts the list import: every current list member who is not in the campaign yet is imported by the next import and starts a run, so publishing on a large list starts many runs. Every lead added to the campaign while the list source is active starts a run, whichever way it got there. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.listId}} and {{trigger.createdAt}} describe it. Each lead starts the workflow once. Needs a connected CRM and the ingestion feature. Turn on list sync in CRM settings. Starting runs costs nothing, but each new contact the list import adds reserves lead credits from the plan, like any CRM list import. Turning the workflow off does not remove the list source: the import keeps adding members until the list source is removed in CRM settings. While the workflow is published the list source is kept there.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"app","key":"crm"}],"inputSchema":{"type":"object","properties":{"listId":{"description":"The CRM list's external id (a HubSpot list id, a Salesforce Campaign id). Pick it from GET /v1/crm-connections/{connectionId}/lists.","type":"string"},"campaignId":{"description":"The Kenso campaign the list members are imported into.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"keepInSync":{"description":"Re-read the list after its last page, so members added later also come in. False imports the list once.","type":"boolean","default":true}},"required":["listId","campaignId"]}},{"type":"trigger.crm_record_changed@1","key":"trigger.crm_record_changed","version":1,"kind":"trigger","title":"CRM record changed","description":"Starts a run when a company, contact or deal in the workspace's connected CRM is created, changed or deleted. Set objectType to company, contact or deal. Set fields to CRM api names as they appear in the CRM (industry, lifecyclestage in HubSpot; Industry, StageName in Salesforce) to start only when one of them changed; leave it empty for any change. Kenso reads the standard fields it syncs, the CRM's custom fields and any field mapped into Kenso under Settings > Integrations: a field outside those never counts as changed, and mapping a field into Kenso or unmapping it is not a change. events picks created, changed and deleted (default created and changed); a created or deleted record matches whatever fields lists. A company Kenso first sees in a list it imports nightly is created at its first full read. Kenso's own writes to the CRM and the CRM's modified dates are not changes. With the CRM mirror on, a record outside its import filter starts no run: a company or contact the filter leaves out, whether a narrowed filter stopped syncing it or Kenso never imported it, and a deal whose company the filter leaves out. Nor does a record Kenso has not imported while the filter's CRM lists cannot be read. The run has no record (record none): {{trigger.accountId}} (a company) and {{trigger.personId}} (a contact) are set when Kenso has the CRM record linked to an account or person; a deal carries the account of its first associated company and the person of its first associated contact that Kenso has linked. {{trigger.changedFields}} names the fields that moved, {{trigger.fields}} holds the record's values after the change and, on deleted, {{trigger.mergedIntoExternalId}} names the record a merge kept. HubSpot changes arrive by webhook, usually within a minute; Salesforce and the other polled CRMs are read every 5 minutes. Needs a connected CRM. Field names match ignoring case. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"app","key":"crm"},{"kind":"flag","key":"ingestion"}],"inputSchema":{"type":"object","properties":{"objectType":{"description":"The CRM object to watch: company, contact or deal.","type":"string"},"fields":{"description":"Only changes to one of these CRM fields, by api name as it appears in the CRM (HubSpot industry, lifecyclestage; Salesforce Industry, StageName). Kenso must read the field: a standard field it syncs, a custom field, or a field mapped into Kenso. Leave out or empty for any change. Created and deleted records match whatever this lists.","type":["array","null"],"items":{"type":"string"},"default":null},"events":{"description":"Which events start a run: created, changed, deleted. Leave out for created and changed.","type":["array","null"],"items":{"type":"string"},"default":null}},"required":["objectType"]}},{"type":"trigger.csv@1","key":"trigger.csv","version":1,"kind":"trigger","title":"CSV upload","description":"Runs each row of an uploaded CSV through the workflow once, as a person. Upload the file into a people list (POST /v1/saved-lists with kind people, then POST /v1/saved-lists/{savedListId}/uploads) and name it in `savedListId`. A Bulk import source that reads once: its `schedule` must be {\"every\": \"once\"}. It reads the list when the workflow is published, after the upload has been processed. Each row is matched in the workspace's people by email, LinkedIn URL or Kenso person id, or added (source workflow, on no account; its name, title, phone and custom columns kept, with the custom fields company_domain and company_name filled where blank), and starts one run. A row with none of the three is skipped, as are rows that opted out. A person runs at most once from the workflow's CSV sources, so publishing the workflow again does not run the same rows again. Reading the list and adding people cost no credits; the run's steps charge as usual. A company list, a deleted list, another workspace's list or a private list of someone other than the person who published the workflow fails the trigger. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} when the list was read. Needs the workflow sources and Accounts features; publishing it needs Search view and Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"savedListId":{"description":"The people list the CSV was uploaded into (POST /v1/saved-lists with kind people, then POST /v1/saved-lists/{savedListId}/uploads): a people list of this workspace, by its id.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["savedListId"]}},{"type":"trigger.deal_changed@1","key":"trigger.deal_changed","version":1,"kind":"trigger","title":"Deal changed","description":"Starts a run when a deal (opportunity) in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (name, amount, closeDate, nextStep, dealType, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. Stage moves, won and lost included, are trigger.opportunity_stage@1, and changes in a connected CRM are trigger.crm_record_changed@1. The run is about the deal's account (record account), or has no record when the deal has none; {{trigger.opportunityId}} and {{trigger.recordId}} are the deal, and oncePerRecordDays counts per deal. {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.engagement@1","key":"trigger.engagement","version":1,"kind":"trigger","title":"Lead engaged","description":"Starts a run when a lead in a campaign opens an email, clicks a tracked link, accepts a LinkedIn invite or unsubscribes. Set event to one of email_opened, link_clicked, linkedin_invite_accepted or unsubscribed, and campaignId to one campaign (leave it out for every campaign). minCount (1 to 20, default 1) waits until the lead has done it that many times in one campaign: only opens and clicks repeat, machine opens and bot clicks never count, and the tally resets 30 days after the lead's latest one. The run is about the lead (record lead), and a lead starts at most one run per event every oncePerRecordDays (1 to 365, default 7). {{trigger.event}} is what happened, {{trigger.count}} how many times so far, {{trigger.contactId}} and {{trigger.campaignId}} the lead and campaign, {{trigger.occurredAt}} when, and {{trigger.url}} the clicked link. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"event":{"description":"What the lead did: email_opened, link_clicked, linkedin_invite_accepted or unsubscribed.","type":"string","enum":["email_opened","link_clicked","linkedin_invite_accepted","unsubscribed"]},"campaignId":{"description":"Only this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"minCount":{"description":"Start once the lead has done it this many times in one campaign: 1 to 20 (default 1). Only email_opened and link_clicked repeat; the other two take 1.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":1},"oncePerRecordDays":{"description":"Start at most one run per lead and event every this many days: 1 to 365 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7}},"required":["event"]}},{"type":"trigger.event_attendees@1","key":"trigger.event_attendees","version":1,"kind":"trigger","title":"Event attendees","description":"Reads the attendee list of one of the workspace's outbound events on a schedule: once, every day or every week. The event is `eventId` (from GET /v1/outbound-events) and the cadence the source's `schedule`. `roles` picks which rows to read (attendee, exhibitor, speaker, sponsor; all four by default). Each read takes the rows added since the last one, in the order they were added, and each person starts one run, once for the workflow: a person listed twice, or read again after a publish, runs once. A row with an email, a LinkedIn URL or a Kenso Search id is matched in the workspace's people or added (source workflow, on no account, with the custom fields company_domain and company_name filled where blank). A row with only a name and a company domain is matched by name on the workspace's account for that domain, or added to it. With no account for the domain yet the row waits, and runs once that account exists: every read checks the waiting rows again, and a source that reads once checks them again every day, reading nothing added to the event after its read, until none wait (at most 2,000 rows wait; past that a row is skipped). Rows wait until 30 days after the event ends; a read after that skips them. A row without a person's name but with a company domain (a company-only sponsor or exhibitor) lands as an account of the workspace where company landing is on (off by default, and then the row is skipped): the account for that domain, or a new one named from the company name (source outbound_event), unless the workspace turned off the accounts Kenso creates or a user removed that domain's account. It starts no run, and the people waiting on that company run in the same read. A row with neither a person's name nor a company domain, or with only a name, is skipped, and is not read again until the workflow is published again. Reading the list and adding people and accounts cost no credits; a new account is scored and scanned like the workspace's other accounts, and the run's steps charge as usual. A deleted event or another workspace's fails the trigger. A Bulk import source: it needs a `schedule`. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources, Accounts and event outbound features; publishing it needs Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"},{"kind":"flag","key":"event_outbound"}],"inputSchema":{"type":"object","properties":{"eventId":{"description":"The outbound event whose attendee list to read: an event of this workspace, from GET /v1/outbound-events.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"roles":{"description":"The roles to read: attendee, exhibitor, speaker and sponsor, at least one. Default all four.","type":["array","null"],"items":{"type":"string","pattern":"^(attendee|exhibitor|speaker|sponsor)$"},"default":null,"minItems":1}},"required":["eventId"]}},{"type":"trigger.event_date@1","key":"trigger.event_date","version":1,"kind":"trigger","title":"On an event date","description":"Starts one run for each target account attending an event (Accounts > Events), a number of days before or after the event starts or ends, at 09:00 in the event's timezone (UTC when it has none). References: {{trigger.event.name}}, {{trigger.event.startsOn}}, {{trigger.event.endsOn}}, {{trigger.event.city}}, {{trigger.event.url}}, {{trigger.account.name}}, {{trigger.attendees}} (isLikely marks a row not confirmed for this edition: a person found at an attending company, or one on last year's lists, which also sets lastYear), {{trigger.scheduledFor}}.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"eventId":{"description":"The event id from Accounts > Events. Omit to run for every event in the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"anchor":{"description":"start or end: the event date the offset counts from.","type":"string","default":"start"},"offsetDays":{"description":"Days after the anchor date, negative for before. -60 to 60.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.form@1","key":"trigger.form","version":1,"kind":"trigger","title":"Form submitted","description":"Starts a run each time someone sends this workflow's form, a page Kenso hosts (publishing creates it; its link and an iframe embed code are returned as form.url and form.embedHtml when the workflow is read). Give a `title`, an optional `intro` and 1 to 20 `fields` (name, label, type: text, long_text, email, phone, url, number, date, select with options, or checkbox; required; placeholder). {{trigger.fields.<name>}} holds each typed value, plus submittedAt, sourceId and page (referrer and utm source, medium and campaign). Map fields to the person with `mapsTo` (email, firstName, lastName, fullName, company, companyDomain, title, phone, linkedinUrl): `createPerson` (default true when a field maps to email or linkedinUrl; needs lead_intake) creates or matches that person first, runs about them and adds personId, accountId and created. `dedupField` with `dedupWindowDays` starts one run per value. `redirectUrl` sends the browser to your own https page after a submission, else the page shows `successMessage`. A field asking for a password, card or ID number is refused. Never put the form's link in an email, campaign or reply step: a Kenso address must stay out of outreach (form_link_in_send). For cold email, put a form on a Studio page and start from trigger.studio_form@1. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"},{"kind":"flag","key":"workflows_forms"}],"inputSchema":{"type":"object","properties":{"title":{"description":"The form's heading, 1 to 120 characters of plain text.","type":"string","minLength":1,"maxLength":120},"fields":{"description":"The form's fields, 1 to 20, in page order.","type":"array","items":{"type":"object","properties":{"name":{"description":"The key its value has in trigger.fields: lower-case letters, digits and _, starting with a letter, up to 40 characters, unique in the form.","type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"description":"What the page shows above the field, 1 to 120 characters.","type":"string","minLength":1,"maxLength":120},"type":{"description":"text, long_text, email, phone, url, number, date, select or checkbox.","type":"string","enum":["text","long_text","email","phone","url","number","date","select","checkbox"]},"required":{"description":"Whether the form refuses a submission without it.","type":"boolean","default":false},"options":{"description":"A select's choices: 2 to 50, each up to 80 characters. Only a select takes them.","type":["array","null"],"items":{"type":"string"},"default":null,"maxItems":50},"placeholder":{"description":"Grey hint text inside the empty field, up to 80 characters.","type":["string","null"],"default":null,"maxLength":80},"mapsTo":{"description":"The person field it fills when createPerson is on: email, firstName, lastName, fullName, company, companyDomain, title, phone or linkedinUrl.","type":["string","null"],"default":null,"enum":["email","firstName","lastName","fullName","company","companyDomain","title","phone","linkedinUrl",null]}},"required":["name","label","type"]},"minItems":1,"maxItems":20},"intro":{"description":"Plain text under the heading, up to 1,000 characters.","type":["string","null"],"default":null,"maxLength":1000},"submitLabel":{"description":"The button's words, up to 40 characters.","type":"string","default":"Send","maxLength":40},"successMessage":{"description":"What the page says after a submission, up to 500 characters.","type":"string","default":"Thanks. We got it.","maxLength":500},"redirectUrl":{"description":"Where the browser goes after a submission instead: an absolute https address on your own site (not a Kenso one).","type":["string","null"],"default":null},"createPerson":{"description":"Create or match the person from the fields mapped with mapsTo before each run, and run about them. Defaults to true when a field maps to email or linkedinUrl. Needs lead_intake.","type":["boolean","null"],"default":null},"dedupField":{"description":"The name of a field whose value starts one run per value within dedupWindowDays.","type":["string","null"],"default":null},"dedupWindowDays":{"description":"How many days (1 to 365) a dedupField value blocks another run. Without it a value blocks forever.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":365},"createsPerson":{"type":"boolean"}},"required":["title","fields"]}},{"type":"trigger.hot_page@1","key":"trigger.hot_page","version":1,"kind":"trigger","title":"Hot page","description":"Starts a run when a lead comes back to a page Kenso tracks, such as a Studio page opened again on another day. The Studio page counts when the lead opens it on two days within studioRevisitDays (default 7). linkUrlContains (default [\"/pricing\"]) and sitePages (default high_intent) set the tracked link click and site page sources, read once Kenso ships them. The run is about the lead (record lead). Leads who replied since the last campaign email (skipIfReplied), leads Kenso emailed or touched within quietDays (default 2), and leads whose account sits below maxTier (default 3; no tier passes) are skipped, and a lead starts at most one run every oncePerRecordDays (default 7). {{trigger.why}} is Kenso's line about the visit (Opened \"Route-cost teardown\" 3 times since Tue), never page text, and the touch's Why now; {{trigger.lastMessageId}} is the last campaign email's Message-ID, to reply in its thread; {{trigger.label}}, {{trigger.views}}, {{trigger.source}} and {{trigger.accountId}} the page, its views, where it came from and the account. studioRevisitDays 0, linkUrlContains [] and sitePages off turn a source off. Needs the signal_plays feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"website","systemOnly":false,"requires":[{"kind":"flag","key":"signal_plays"}],"inputSchema":{"type":"object","properties":{"studioRevisitDays":{"description":"Start when the lead opens the same Studio page on two days within this many days: 0 to 30 (default 7). 0 turns Studio pages off.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7},"linkUrlContains":{"description":"Start when the lead clicks a tracked campaign link whose URL holds one of these (any case): up to 10, 1 to 200 characters each. Default [\"/pricing\"]; [] turns link clicks off.","type":["array","null"],"items":{"type":"string"},"default":null},"sitePages":{"description":"Site pages that start a run: high_intent (pages tagged in Settings > Website Tracking; default) or off.","type":"string","default":"high_intent","enum":["high_intent","off"]},"skipIfReplied":{"description":"Skip a lead who replied after the last campaign email they got; with no campaign email, any reply counts (default true). Automated and out-of-office replies never count.","type":"boolean","default":true},"quietDays":{"description":"Skip a lead Kenso emailed or touched within this many days: 0 to 30 (default 2). 0 never skips.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":2},"maxTier":{"description":"Skip a lead whose account sits below this tier: 1 to 10 (default 3). A lead with no tier is not skipped.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":3},"oncePerRecordDays":{"description":"Start at most one run per lead every this many days: 1 to 365 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7}}}},{"type":"trigger.job_posts@1","key":"trigger.job_posts","version":1,"kind":"trigger","title":"Job posts","description":"Reads the Kenso job postings index on a schedule and starts one run for each company with a matching open job post. `filters` are the jobFilters of POST /v1/job-post-searches/companies (titles include and exclude, location countries, regions, states and cities, seniority, hasRemote, sources, includeAgencies, companies, tags, languages, salary); that route's hiringSet.total is the number of companies before you publish. The source sets the posting window and reads open posts only, so postedWithin, postedAfter, postedBefore and status are refused in filters. `backfillDays` decides the first check: 0 (the default) starts with the posts from the moment the workflow is published, 1 to 30 also reads that many days before it. Later checks read what was posted since, and look back 7 days for posts the index found late. Each company is keyed by its Kenso Search company id: the one the index matched, once its Kenso Search record proves to be that company, else the one the source finds in Kenso Search by the company's domain (a unique match only; a name alone never matches, since another company can share it). It runs once per workflow, so publishing again or a later check never runs it twice, and a second Kenso Search company on the domain of one that already ran is skipped with it; with `rerunAfterDays` it runs again once that many days have passed since its last run, when it still has a matching post. A company Kenso Search has no unique match for, one whose id is another company's record and that resolves to none, or one without a website domain, is skipped and counted. With `includeUnmatched: true` a company Kenso Search has no company for runs too: it is keyed by the index's company id (once per workflow, and never again once it is matched), lands on its best-known domain (one without a known domain is still skipped and counted), and its run has {{trigger.matchStatus}} unmatched, {{trigger.kenSearchCompanyId}} null, {{trigger.jobsCompanyId}} and {{trigger.companyDomainSource}}; enrich it with a step such as data.find_people@1. Each company is matched in Accounts by its domain, or added (source workflow, no owner, without research), and its run is about that account: {{account.*}} holds its fields, {{trigger.posts}} its matching posts newest first (at most 10: id, title, location, country, workplaceType, salaryMinUsd, salaryMaxUsd, applicationUrl, postedAt), {{trigger.postCount}} how many the check read, and {{trigger.kenSearchCompanyId}}, {{trigger.companyName}} and {{trigger.companyDomain}} the company. The checks of one schedule period (from one day's or week's check to the next) start runs for at most `limit` companies together (100 by default, at most 1000), newest posts first, so publishing again checks at once but takes only what the period's earlier checks left; the rest run on the next check. Company size is not a job postings filter: gate size and fit with ai.qualify@1 or logic.filter@1. Reading the index and adding accounts cost no credits; the run's steps charge as usual. A Bulk import source: it needs a `schedule` of once (with `backfillDays` 1 to 30), day (the usual cadence) or week, not hour. Filters the index refuses fail the trigger. Needs the workflow sources and Accounts features; publishing it needs Search view and Accounts edit.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The job postings filters, the jobFilters of POST /v1/job-post-searches/companies: titles {include, exclude}, location {countries, regions, states, cities}, seniority, hasRemote, sources, includeAgencies, companies, tags, languages and salary. The source sets the posting window and reads open posts only, so postedWithin, postedAfter, postedBefore and status are refused here: set backfillDays instead.","type":["object","null"],"default":null},"backfillDays":{"description":"How far back the first check reads: 0 (the default) starts with the posts from the moment the workflow is published, 1 to 30 also reads the posts of that many days before it. A once schedule needs 1 to 30: its one check, at publish, would find no post from then on.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0},"limit":{"description":"Most companies the source starts runs for per schedule period (from one day's or week's check to the next), 1 to 1000. Default 100. A publish checks at once but takes only what the period's earlier checks left. Companies past it run on the next check.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"rerunAfterDays":{"description":"Run a company again once this many days (1 to 365) have passed since its last run, when it still has a matching post. Leave out (the default) to run each company once per workflow.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"includeUnmatched":{"description":"Also run the hiring companies Kenso Search has no company for (DEV-7789), keyed by the job postings index's company id: each becomes an account named after the company, on its best-known domain, so a step such as data.find_people@1 can find its people another way. One without a known domain is skipped and counted. Off by default: those companies are skipped and counted.","type":"boolean","default":false}}}},{"type":"trigger.ken_search@1","key":"trigger.ken_search","version":1,"kind":"trigger","title":"Search","description":"Reads a Kenso Search people search on a schedule, from filters you set or from a saved search. Set exactly one of `filters` (the searchFilters of POST /v1/search/imports) or `savedSearchId`; the cadence is the source's `schedule`. Each read starts from the top of the search and takes up to `limit` people (100 by default, at most 1000): each person is matched in the workspace's people by LinkedIn URL or Kenso Search id, or added (source workflow, on no account, with the custom fields company_domain and company_name filled where blank), and starts one run. With `skipKnown` (true by default) people the workspace already had are skipped and do not count toward the limit, so a weekly read finds new people only; with it false every read runs the same people again. Reading the search and adding people cost no credits; the run's steps charge as usual. A saved search is read as the person who published the workflow: if they left the workspace or can no longer see it, the trigger fails, as it does when Kenso Search rejects the filters. A Bulk import source: it needs a `schedule`. The run is about that person: {{person.*}} holds their fields, {{trigger.recordId}} is their id and {{trigger.scheduledFor}} the slot that read them. Needs the workflow sources and Accounts features; publishing it needs Search view, Accounts edit and the import permission.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"filters":{"description":"The Kenso Search people filters to read: the searchFilters of POST /v1/search/imports, the body POST /v1/search/people takes (page, pageSize and searchAfter are ignored). Set this or savedSearchId.","type":["object","null"],"default":null},"savedSearchId":{"description":"A saved people search to read instead (GET /v1/search/saved), read as the person who published the workflow. Set this or filters.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"limit":{"description":"Most people one read starts runs for, 1 to 1000. Default 100.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"skipKnown":{"description":"Skip people already in the workspace's people, so a repeating read starts runs only for people new to the workspace (default true). False starts a run for every person found on every read.","type":"boolean","default":true}}}},{"type":"trigger.lead_changed@1","key":"trigger.lead_changed","version":1,"kind":"trigger","title":"Lead changed","description":"Starts a run when a member, an agent or the API edits a lead in Kenso (in the app, through the contacts API or with the contacts tool). Imports, bulk edits, enrichment, sends and workflow writes are not edits, and a new lead is trigger.new_leads@1, so on takes updated only. Set fields (firstName, lastName, email, title, linkedinUrl, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"title\": {\"to\": \"CEO\"}}, with to and from each a value or a list. oncePerRecordDays (0 to 365) starts at most one run per lead in that many days. The run is about the lead (record lead). {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values, {{trigger.actor.kind}} and {{trigger.actor.memberId}} say who edited it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.linkedin_connection_accounts@1","key":"trigger.linkedin_connection_accounts","version":1,"kind":"trigger","title":"LinkedIn connection accounts","description":"Runs the accounts the LinkedIn connections enrich job picks for a seat: the companies of its tier 1 buyers and the ICP-fit companies where a connection holds an advisor, board or investor seat (its warm paths). The job starts one run per account once the seat's connections are sorted; the source reads nothing on its own and takes no schedule. `linkedInAccountId` limits it to one seat's job. The run is about the account: {{account.*}} holds its fields, {{trigger.level}} is emails or full and {{trigger.reason}} is tier1 or warm_path. Free; the steps charge as usual. Needs the workflow sources and LinkedIn connections enrich features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"linkedInAccountId":{"description":"Only the accounts the enrich job of this LinkedIn seat (linkedInAccountId of GET /v1/linkedin-network) starts. Leave it out for any seat's job.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.linkedin_connections@1","key":"trigger.linkedin_connections","version":1,"kind":"trigger","title":"LinkedIn connections","description":"Collects the connections a LinkedIn seat imported (its connections matched to a person) and runs each through the workflow as a person. They are the imported rows of GET /v1/linkedin-connections. `linkedInAccountId` is the seat. `level` is emails or full and `stage` is sort or work; the run carries both as {{trigger.level}} and {{trigger.stage}}, with {{trigger.connectionId}} (the connection row) and {{trigger.linkedInAccountId}}, so one template sorts on one source and works the stored group on another. A Bulk import source: `schedule` once reads the seat's connections when the workflow is published; hour, day or week also reads the connections imported since the last read. A connection runs once per stage and level per workflow, a republish included. The run is about the connection's person: {{person.*}} holds their fields and {{trigger.recordId}} is the person id. Free; the steps charge as usual. Needs the workflow sources and LinkedIn connections enrich features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"linkedin_connections_enrich"}],"inputSchema":{"type":"object","properties":{"linkedInAccountId":{"description":"The LinkedIn seat (linkedInAccountId of GET /v1/linkedin-network) whose imported connections the source reads. The connections enrich job sets it to the seat it enriches.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"level":{"description":"How far the enrich goes: emails (sort, then emails for buyers and partners) or full (also phones and research for tier 1 buyers). The default is emails.","type":"string","default":"emails"},"stage":{"description":"Which stage the runs are: sort (group each connection into buyer, partner or other) or work (find emails, phones and research by the stored group). The default is sort.","type":"string","default":"sort"}},"required":["linkedInAccountId"]}},{"type":"trigger.linkedin_post_engagement@1","key":"trigger.linkedin_post_engagement","version":1,"kind":"trigger","title":"LinkedIn post engagement","description":"Once a day, reads who reacted to, commented on or replied under the recent posts of your LinkedIn seats (and of up to 3 company pages), adds the new people to a campaign you pick as leads, and starts one run for each person the read places in the campaign, new or already a lead there. The campaign is `campaignId`. Set the seats (none reads every connected seat), the kinds (reactions, comments, replies or any mix; all three by default), optional comment keywords, how old a post may be (`postMaxAgeDays`, 14 by default, at most 30) and how many new people a day (`maxNewLeadsPerDay`, 100 by default, at most 500). People are added like a LinkedIn import: the campaign's dedupe and do-not-contact apply, your own seats are never added, and each new lead reserves lead credits from the plan. The first read runs a few minutes after publishing, and each read counts against the seats' daily LinkedIn read limits. A disconnected seat is skipped until it is reconnected; a seat that was removed, a deleted campaign or a trigger-mode campaign fails the trigger. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.kind}} (reaction, comment or reply), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}}, {{trigger.postUrl}}, {{trigger.commentText}} and {{trigger.linkedinAccountId}} describe it. Each lead starts the workflow once. Needs the LinkedIn signals feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The Kenso campaign the people are added to as leads. A regular campaign, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"linkedinAccountIds":{"description":"The LinkedIn seats whose posts are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"kinds":{"description":"Which engagements count: any of reaction, comment, reply (a reply to a comment on the post). All three by default.","type":["array","null"],"items":{"type":"string"},"default":null},"commentKeywords":{"description":"Only comments and replies that contain one of these words count (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every comment; reactions are never filtered. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"companyPageUrls":{"description":"Up to 3 LinkedIn company pages whose posts are read too, such as https://www.linkedin.com/company/acme.","type":["array","null"],"items":{"type":"string"},"default":null},"postMaxAgeDays":{"description":"Read posts from the last this many days. 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"maxNewLeadsPerDay":{"description":"The most new people added to the campaign each day. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["campaignId"]}},{"type":"trigger.linkedin_post_engagement@2","key":"trigger.linkedin_post_engagement","version":2,"kind":"trigger","title":"LinkedIn post engagement","description":"Once a day, reads who reacted to, commented on or replied under the recent posts of your LinkedIn seats, of up to 3 company pages, and of up to 10 pasted posts (anyone's), labels each comment's intent, and starts one run per person with their strongest engagement (keyword comment, then comment, then reply or author, then reaction). The run is about that person: {{person.*}} holds their fields; {{trigger.kind}} (reaction, comment or reply), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}}, {{trigger.postUrl}}, {{trigger.postText}}, {{trigger.ownPost}} (false for a pasted post by someone outside the workspace), {{trigger.commentText}}, {{trigger.isReply}}, {{trigger.keywordMatched}}, {{trigger.reactionType}}, {{trigger.intent}} (positive, requesting, question, neutral or negative; empty for a reaction) and {{trigger.intentReason}} describe the engagement. Branch on {{trigger.intent}} or {{trigger.keywordMatched}}, then add the person to a campaign with campaign.add_person@1, which writes linkedin_source, linkedin_headline, linkedin_comment and linkedin_post_text to the lead. Set the seats (none reads every connected seat), the kinds, optional reaction types, comment keywords, company pages and post URLs, how old a post may be (`postMaxAgeDays`, 14 by default, at most 30) and how many people a day (`maxRunsPerDay`, 100 by default, at most 500). Each person starts the workflow once. Each read counts against the seats' daily LinkedIn read limits. A disconnected seat is skipped until it is reconnected; a seat that was removed fails the trigger. Needs the LinkedIn signals feature. Instead of its own sources, a trigger can list `topics` (keywords) and `watchedProfileUrls` (people and company pages): their new posts are found once a day and each is read once, 24 to 72 hours after it is published, through a seat whose owner turned research reads on. That needs the linkedin_topic_signals feature too, and publish refuses it without. {{trigger.kind}} can then also be author (the person who wrote a post a topic found), {{trigger.sourceKind}} is topic or person (seat, page or post for your own sources) and {{trigger.topic}} is the keyword, or the watched person's or page's name; {{trigger.ownPost}} is false. `headlineKeywords` and `headlineExcludeKeywords` then filter people by their LinkedIn headline.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"linkedinAccountIds":{"description":"The LinkedIn seats whose own posts are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"companyPageUrls":{"description":"Up to 3 LinkedIn company pages whose posts are read too, such as https://www.linkedin.com/company/acme.","type":["array","null"],"items":{"type":"string"},"default":null},"postUrls":{"description":"Up to 10 LinkedIn post URLs to read, yours or anyone's, such as https://www.linkedin.com/posts/jane-doe_title-activity-7212345678901234567-AbCd. A post by someone outside the workspace is a third-party post: campaign.add_person@1 then withholds the comment and post text from the lead's variables.","type":["array","null"],"items":{"type":"string"},"default":null},"postReaderLinkedinAccountId":{"description":"The seat that reads the company pages and pasted posts. Left out, the connected seat with the most daily reads left is used.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"kinds":{"description":"Which engagements count: any of reaction, comment and reply (a reply to a comment on the post). All three by default. With topics or watched people, author (the person who wrote a post a topic found) counts too, and the default is comment and reply, plus author with topics.","type":["array","null"],"items":{"type":"string"},"default":null},"reactionTypes":{"description":"Only these reaction types count: any of like, celebrate, support, love, insightful, funny. Empty takes every reaction.","type":["array","null"],"items":{"type":"string"},"default":null},"commentKeywords":{"description":"Only comments and replies that contain one of these words count (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every comment; reactions are never filtered. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"postMaxAgeDays":{"description":"Read posts from the last this many days. 1 to 30.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":14},"maxRunsPerDay":{"description":"The most new people a day the trigger starts runs for. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100},"topics":{"description":"Up to 5 keywords or phrases, of up to 100 characters each. New LinkedIn posts about them are found and their engagers read. A trigger with topics or watched people reads no seats, company pages or pasted posts. Needs the linkedin_topic_signals feature: publish refuses topics in a workspace without it. A workspace listens to at most 10 topics across its triggers.","type":["array","null"],"items":{"type":"string"},"default":null},"watchedProfileUrls":{"description":"Up to 10 LinkedIn profile or company page URLs, such as https://www.linkedin.com/in/jane-doe or https://www.linkedin.com/company/acme, whose new posts are found and their engagers read. Publish refuses watched profiles in a workspace that lacks the linkedin_topic_signals feature. A workspace watches at most 20 across its triggers.","type":["array","null"],"items":{"type":"string"},"default":null},"headlineKeywords":{"description":"With topics or watched people only, so it takes the linkedin_topic_signals feature, without which publish refuses the trigger: a person whose LinkedIn headline is known must match one of these words (whole words, not case-sensitive, a trailing s or a one-letter typo still matches). Empty takes every headline; a person without a headline always passes. At most 20, of up to 100 characters each.","type":["array","null"],"items":{"type":"string"},"default":null},"headlineExcludeKeywords":{"description":"With topics or watched people only: a person whose headline matches one of these words is left out. At most 20, of up to 100 characters each. Part of the linkedin_topic_signals feature, and publish refuses it where that feature is off.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.linkedin_profile_viewers@1","key":"trigger.linkedin_profile_viewers","version":1,"kind":"trigger","title":"LinkedIn profile viewers","description":"Once a day, reads who viewed the LinkedIn profiles of your Premium seats in the last 14 days, adds the new people to a campaign you pick as leads, and starts one run for each person the read places in the campaign, new or already a lead there. The campaign is `campaignId`. Set the seats (none reads every connected Premium seat; LinkedIn shows profile viewers to Premium accounts only) and how many new people a day (`maxNewLeadsPerDay`, 100 by default, at most 500). Viewers in private mode are not added: LinkedIn does not name them. People are added like a LinkedIn import: the campaign's dedupe and do-not-contact apply, your own seats are never added, and each new lead reserves lead credits from the plan. The first read runs a few minutes after publishing, and each read counts against the seats' daily LinkedIn read limits. A disconnected seat or one without Premium is skipped until it recovers; a seat that was removed, a deleted campaign or a trigger-mode campaign fails the trigger. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}}, {{trigger.kind}} (profile_view), {{trigger.profileUrl}}, {{trigger.name}}, {{trigger.headline}} and {{trigger.linkedinAccountId}} (the seat they viewed) describe it. Each lead starts the workflow once. Needs the LinkedIn signals feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_signals"}],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"The Kenso campaign the people are added to as leads. A regular campaign, not a trigger-mode one. Pick it from GET /v1/campaigns.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"linkedinAccountIds":{"description":"The LinkedIn Premium seats whose profile viewers are read, from GET /v1/linkedin-accounts. Empty or left out reads every connected Premium seat of the workspace. At most 50.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"maxNewLeadsPerDay":{"description":"The most new people added to the campaign each day. 1 to 500.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["campaignId"]}},{"type":"trigger.linkedin_request_accepted@1","key":"trigger.linkedin_request_accepted","version":1,"kind":"trigger","title":"LinkedIn connection request accepted","description":"Starts a run when Ken accepts a LinkedIn connection request, after a person approved it or by itself on an autonomous seat. Set linkedinAccountId to watch one seat and decision to accept_as_lead or accept_only: accept_only means Ken did nothing else with the person. Ken adds accept_as_lead people to Accounts or the seat's campaign by itself, so use this for extra steps such as a Slack note or research, not a second message. The run has no record (record none): {{trigger.personId}}, {{trigger.accountId}}, {{trigger.contactId}}, {{trigger.campaignId}} and {{trigger.touchId}} are set when the hand-off created them. Needs the LinkedIn inbound requests feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_inbound"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"Only requests accepted on this LinkedIn seat (the LinkedIn account id). Leave out for every seat.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"decision":{"description":"Only this decision: accept_as_lead (Ken also adds the person to Accounts or the seat's campaign) or accept_only (Ken only accepted). Leave out for both.","type":["string","null"],"default":null}}}},{"type":"trigger.linkedin_request_received@1","key":"trigger.linkedin_request_received","version":1,"kind":"trigger","title":"LinkedIn connection request received","description":"Starts a run when Ken triages a LinkedIn connection request that is not spam and it is a strong fit or unclear, for example to post it to Slack. Set linkedinAccountId to watch one seat and lane to strong or unclear to watch one lane. Ken has not accepted the request yet and a workflow cannot accept or decline it. The run has no record (record none): {{trigger.requestId}}, {{trigger.fullName}}, {{trigger.headline}}, {{trigger.note}}, {{trigger.linkedinUrl}}, {{trigger.icpScore}} and {{trigger.icpReasons}} describe the person. Needs the LinkedIn inbound requests feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"linkedin","systemOnly":false,"requires":[{"kind":"flag","key":"linkedin_inbound"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"Only requests sent to this LinkedIn seat (the LinkedIn account id). Leave out for every seat.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"lane":{"description":"Only this lane: strong (a fit at or above the seat's threshold) or unclear (waiting for the seat owner). Leave out for both.","type":["string","null"],"default":null}}}},{"type":"trigger.mailbox_label@1","key":"trigger.mailbox_label","version":1,"kind":"trigger","title":"Mailbox label","description":"Starts a run for each new message that gets a chosen Gmail label in a connected Google inbox, whether the label is on it when it arrives or added later (by a Gmail filter, Superhuman's AI labels or by hand). Set inboxId (a Google inbox connected in Kenso) and label (the name as Gmail shows it, nested labels joined with slashes, e.g. [Superhuman]/AI/Pitch, or its id). Only the inbox's owner can publish it. Nothing that was in the label before the workflow went live starts a run, nor mail that arrived more than a day before it was published (a filter applied to old conversations), and a message starts at most one run. Auto-replies and delivery reports start nothing; a reply to mail sent through Kenso stays a reply in To Reply. Other messages are stored as Kenso messages (in the Unibox with the Workflow label tag) and never count as a campaign or account reply. excludeFromDomains skips senders of those domains. createPerson (default true) creates or updates the sender as a person on their company's account first and runs about that person (needs lead_intake); false runs about no record. {{trigger.messageId}} (msg_...) and {{trigger.threadId}} (thr_...) name the message, so send.email can reply in its thread; {{trigger.from}}, {{trigger.fromName}}, {{trigger.fromDomain}}, {{trigger.subject}}, {{trigger.text}} (the plain body, up to 10,000 characters), {{trigger.receivedAt}}, {{trigger.labels}}, {{trigger.personId}} and {{trigger.accountId}}. Gmail only for now; Microsoft and IMAP inboxes come later. Checked about once a minute. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"mailbox_label_trigger"}],"inputSchema":{"type":"object","properties":{"inboxId":{"description":"Id of the connected Gmail inbox to watch (an inbox connected with Google in Kenso). Only the inbox's owner can publish the trigger.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0},"label":{"description":"The Gmail label to watch, one of your own (a Gmail system label such as INBOX or UNREAD is refused): its name as Gmail shows it, nested labels joined with slashes (e.g. [Superhuman]/AI/Pitch), or its id (Label_11). Publish resolves it to the label's id, so renaming the label in Gmail keeps the trigger working.","type":["string","null"],"default":null},"excludeFromDomains":{"description":"Sender domains to skip, e.g. [\"ken.so\"]. A subdomain of a listed domain is skipped too. Up to 50.","type":["array","null"],"items":{"type":"string"},"default":null},"createPerson":{"description":"Create or update the sender as a person on their company's account (lead intake, as the webhook trigger does) before each run and run about that person. Default true. Needs lead_intake. False runs about no record, and personId and accountId are null.","type":["boolean","null"],"default":null}}}},{"type":"trigger.manual@1","key":"trigger.manual","version":1,"kind":"trigger","title":"Run on records","description":"Starts one run per record someone picks: a person in the app, an agent or the API selects accounts, people or leads and runs the workflow on them (up to 1,000 per call). Use it for one-off enrichment, cleanup or outreach on a hand-picked list. `recordType` limits what it may run on (account, person, lead or place (a Google Maps place, while the search_places feature is on)). The run is about the picked record ({{account.*}}, {{person.*}}, {{lead.*}} or {{place.*}}); {{trigger.recordType}}, {{trigger.recordId}}, {{trigger.startedByKind}} and {{trigger.startedByUserId}} say who started it on what. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"recordType":{"description":"The only record type people may run it on: account, person, lead or place (a Google Maps place, while the search_places feature is on). Leave it out to allow any.","type":["string","null"],"default":null}}}},{"type":"trigger.meeting_booked@1","key":"trigger.meeting_booked","version":1,"kind":"trigger","title":"Meeting booked","description":"Starts a run when Ken's scheduling assistant books a meeting with a lead who replied to a campaign, once per booking. The run is about that lead (record lead). {{trigger.leadId}} and {{trigger.campaignId}} are the lead and campaign, {{trigger.slotStart}} and {{trigger.slotEnd}} the meeting time in UTC, {{trigger.bookingRef}} the calendar booking and {{trigger.negotiationId}} the negotiation. Set campaignId to react to one campaign only. Use it to notify the team, move the account to meeting_booked or prepare a brief. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Only meetings booked from this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.meeting_booked@2","key":"trigger.meeting_booked","version":2,"kind":"trigger","title":"A meeting is booked","description":"Starts a run when a meeting with an outside guest is booked, once per meeting, from any booking tool: a Kenso booking page, Calendly, Cal.com, HubSpot Meetings, Chili Piper, Ken's reply agent or a calendar invite. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.source}} the booking tool, {{trigger.startsAt}} the start (UTC), {{trigger.startsAtLocal}} the start written in the guest's time zone ({{trigger.guestTimeZone}}), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.joinLine}} and {{trigger.rescheduleLine}} the join and reschedule links as ready lines (empty when there is no link), {{trigger.meetingTypeName}} and {{trigger.title}} what the meeting is. A reschedule is not a new booking. A meeting whose guest is not a person on an account, a private meeting, one that already started and one the calendar sync backfilled never start a run. Set sources, meetingTypeIds or campaignIds to react to some meetings only; one left out or empty matches every meeting. trigger.meeting_booked@1 is the older trigger for the reply agent's bookings on a lead. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"sources":{"description":"Only meetings booked through one of these tools: kenso_page, calendly, cal_com, hubspot, chili_piper, reply_agent, calendar. Leave out or empty for every tool.","type":["array","null"],"items":{"type":"string"},"default":null},"meetingTypeIds":{"description":"Only meetings of one of these Kenso meeting type ids. A meeting booked outside a Kenso booking page has no meeting type and never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"campaignIds":{"description":"Only meetings whose guest came from one of these campaign ids. A meeting with no campaign never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.meeting_changed@1","key":"trigger.meeting_changed","version":1,"kind":"trigger","title":"A meeting is cancelled or marked a no-show","description":"Starts a run when a booked meeting with an outside guest is cancelled, marked a no-show or moved to a new time, once per meeting for each kind of change: a second move of the same meeting starts no second run. {{trigger.change}} is cancelled, no_show or rescheduled. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.status}} its status now, {{trigger.startsAt}} and {{trigger.startsAtLocal}} its start now (the new time after a move), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.rescheduleLine}} the reschedule link as a ready line (empty when there is none), {{trigger.cancelActor}} who cancelled (guest or host; empty when the booking tool does not say) and {{trigger.title}} what the meeting is. A meeting whose guest is not a person on an account and a private meeting never start a run. With the meetings that fall through feature on, a meeting with no account whose guest has an email starts a run too, with no record (the meeting is {{trigger.meetingId}}; {{trigger.accountId}} and {{trigger.personId}} are empty), and a cancel made after the meeting started and before it ended runs as no_show (none when the meeting was recorded), while one made after it ended starts no run. Set changes to react to some kinds only; left out or empty matches all three. Use it to offer a new time after a cancellation or a no-show. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"changes":{"description":"Only these kinds of change: cancelled, no_show, rescheduled. Leave out or empty for all three.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.meeting_notes_ready@1","key":"trigger.meeting_notes_ready","version":1,"kind":"trigger","title":"Meeting notes ready","description":"Starts a run when Kenso Notetaker's notes for a meeting are ready, once per meeting: a regenerate, a template switch or a later notes version never starts another, and a private meeting never starts one. The run has no record (record none). {{trigger.meetingId}} is the meeting, {{trigger.ownerUserId}} its owner, {{trigger.accountId}} and {{trigger.accountStage}} its account and that account's stage (absent when the meeting has no account), {{trigger.templateKey}} the notes template, {{trigger.durationSeconds}} how long the call ran, {{trigger.participantCount}} how many people were invited, {{trigger.startsAt}} when it started (UTC) and {{trigger.meetingUrl}} a link to it. The output holds no transcript, notes or facts: read them with a step. Set templateKeys, accountStages or ownerUserIds to react to some meetings only; one left out or empty matches every meeting. Use it to post a recap, update the account or draft the follow-up. Needs the notetaker feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"notetaker"}],"inputSchema":{"type":"object","properties":{"templateKeys":{"description":"Only notes written with one of these templates: discovery, demo, follow_up, pricing_negotiation, closing_procurement, kickoff, account_check_in, generic. Where the workspace has call types on, its call types are accepted too: networking, partnership, investor, internal, and its own (a key that starts with custom_). Leave out or empty for every template.","type":["array","null"],"items":{"type":"string"},"default":null},"accountStages":{"description":"Only meetings whose account is in one of these stages when the trigger fires: new, researching, warming, engaged, meeting_booked, in_deal, onboarding, client, churned, nurture, paused, lost, network, not_a_fit, competitor, do_not_contact. A meeting with no account never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":"string"},"default":null},"ownerUserIds":{"description":"Only meetings owned by one of these user ids. Leave out or empty for every owner.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.meeting_starts@1","key":"trigger.meeting_starts","version":1,"kind":"trigger","title":"Before a meeting starts","description":"Starts a run a set time before a booked meeting with an outside guest starts. The time is offsetMinutes before it (1440 is 24 hours), or localTime (HH:mm) in the guest's time zone on the day of the meeting when that is at least 60 minutes before the start. It reads the meeting as it is when the time comes, so a cancelled meeting never starts a run, a moved one starts it at the new time, and a time that passed after the meeting began is skipped. minLeadMinutes skips a meeting booked too close to its start (left out, it is offsetMinutes, so a 24-hour reminder never goes out for a meeting booked 3 hours ahead). One run per meeting and start time. The run is about the meeting's account (record account); the guest is {{trigger.personId}} and {{trigger.guestEmail}}. {{trigger.meetingId}} is the meeting, {{trigger.startsAt}} the start (UTC), {{trigger.startsAtLocal}} the start written in the guest's time zone ({{trigger.guestTimeZone}}), {{trigger.guestFirstName}} and {{trigger.hostName}} the names, {{trigger.joinLine}} and {{trigger.rescheduleLine}} the join and reschedule links as ready lines (empty when there is no link), {{trigger.reminderText}} the reminder note of a Kenso meeting type (empty for other meetings) and {{trigger.title}} what the meeting is. A meeting whose guest is not a person on an account and a private meeting never start a run. Set sources, meetingTypeIds or campaignIds to react to some meetings only. Needs the meeting emails feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"meeting_emails"}],"inputSchema":{"type":"object","properties":{"offsetMinutes":{"description":"Minutes before the meeting starts, 5 to 20160 (14 days). 1440 is 24 hours before. Set this or localTime, not both.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"localTime":{"description":"A time of day as HH:mm in 24-hour time, for example 09:00: the run starts at that time in the guest's time zone on the day of the meeting, only when that is at least 60 minutes before the meeting starts. Set this or offsetMinutes, not both.","type":["string","null"],"default":null},"minLeadMinutes":{"description":"The meeting must have been booked at least this many minutes before it starts, 0 to 20160. Left out, it is offsetMinutes (60 with localTime), so a 24-hour reminder never goes out for a meeting booked 3 hours ahead.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"sources":{"description":"Only meetings booked through one of these tools: kenso_page, calendly, cal_com, hubspot, chili_piper, reply_agent, calendar. Leave out or empty for every tool.","type":["array","null"],"items":{"type":"string"},"default":null},"meetingTypeIds":{"description":"Only meetings of one of these Kenso meeting type ids. A meeting booked outside a Kenso booking page has no meeting type and never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null},"campaignIds":{"description":"Only meetings whose guest came from one of these campaign ids. A meeting with no campaign never matches. Leave out or empty for every meeting.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.new_leads@1","key":"trigger.new_leads","version":1,"kind":"trigger","title":"New lead added","description":"Starts one run for every lead added to the workspace after the workflow is published, from any source (CSV import, Kenso Search, API, webhook), or only to one campaign. Set `campaignId` to limit it to that campaign. Leads that existed before publishing are not backfilled. The run is about that lead: {{lead.*}} holds its fields, {{trigger.leadId}}, {{trigger.campaignId}} and {{trigger.createdAt}} describe it. Runs start within about a minute of the lead being added. Each lead starts the workflow once. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"campaignId":{"description":"Only leads added to this campaign. Leave it out for every new lead of the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.opportunity_stage@1","key":"trigger.opportunity_stage","version":1,"kind":"trigger","title":"Deal stage changed","description":"Starts a run when a Kenso opportunity (deal) moves into one of the chosen stages or stage categories, whoever moved it. Set stageCategories (open, won, lost; default lost) or stages (this workspace's stage keys). With only stages set, only those stages start a run. The run is about the deal's account (record account). {{trigger.opportunityId}} is the deal, {{trigger.accountId}} its account, {{trigger.name}} its name, {{trigger.fromStage}} and {{trigger.fromCategory}} the stage it left, {{trigger.toStage}} and {{trigger.toCategory}} the new one, {{trigger.lostReason}} why it was lost (lost moves only, when set), {{trigger.amount}} and {{trigger.currency}} its value, {{trigger.changedAt}} when it moved, and {{trigger.personId}} and {{trigger.personEmail}} the deal's person when it names one. On a move into a lost stage, {{trigger.followUpAt}} is when to revive the deal: the first quarter-start Tuesday at least 120 days later, at 14:00 UTC; use it as logic.wait until. Set oncePerRecordDays to start at most one run per account in that many days. Needs the opportunities and lead_revival features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"lead_revival"}],"inputSchema":{"type":"object","properties":{"stageCategories":{"description":"Stage categories that start a run when an opportunity moves into a stage of one of them: open, won, lost. Default [\"lost\"] when stages is left out too.","type":["array","null"],"items":{"type":"string"},"default":null},"stages":{"description":"Stage keys (this workspace's opportunity stages, e.g. proposal) that start a run when an opportunity moves into one, as well as stageCategories. Leave out for categories only.","type":["array","null"],"items":{"type":"string"},"default":null},"oncePerRecordDays":{"description":"Start at most one run per account every this many days, whichever of its deals moved. Leave out to run on every move.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.opportunity_went_quiet@1","key":"trigger.opportunity_went_quiet","version":1,"kind":"trigger","title":"Deal went quiet","description":"Starts a run when an open Kenso opportunity (deal) goes quiet: its account has had no two-way activity (a reply, a held meeting or a connected call) for the workspace's quietAfterDays. Once per quiet episode: the next two-way activity ends the episode, and a later silence is a new one. Set stages (this workspace's stage keys) to start only for deals in those stages; leave it out for every quiet deal. The run is about the deal's account (record account). {{trigger.opportunityId}} is the deal, {{trigger.accountId}} its account, {{trigger.name}} its name, {{trigger.stage}} its current stage, {{trigger.amount}} and {{trigger.currency}} its value, {{trigger.thresholdDays}} the quiet threshold in days, {{trigger.quietSince}} when the silence began, {{trigger.lastActivityKind}} what happened then (reply, meeting, call or created), {{trigger.wentQuietAt}} when Kenso marked it quiet, {{trigger.ownerUserId}} its owner when it has one, and {{trigger.personId}} and {{trigger.personEmail}} the deal's person when it names one. Needs the opportunities and deal_quiet features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"opportunities"},{"kind":"flag","key":"deal_quiet"}],"inputSchema":{"type":"object","properties":{"stages":{"description":"Stage keys (this workspace's opportunity stages, e.g. proposal): only a deal in one of them starts a run when it goes quiet. Leave out for every quiet deal.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.person_changed@1","key":"trigger.person_changed","version":1,"kind":"trigger","title":"Person changed","description":"Starts a run when a person in Kenso is created or changes, whoever did it: a member, the API, an agent or Kenso. Set on to created, updated (default) or both. Set fields (fullName, firstName, lastName, title, email, phone, linkedinUrl, leadStatus, relationship, ownerMemberId or custom.<key>, up to 20) to start only when one of them changed, and match (up to 5 fields) to start only on a value: {\"ownerMemberId\": {\"to\": 88}}, with to and from each a value or a list. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone, mapping a buying committee) is saved by Kenso and can start the same workflow again: list only the fields that matter, or set oncePerRecordDays, to stop that. A change another workflow made starts nothing unless includeWorkflowChanges is true, which needs oncePerRecordDays of 1 or more. oncePerRecordDays (0 to 365) starts at most one run per record in that many days. A first or last name edit reports firstName or lastName; fullName changes only when the full name itself is edited. Changes in a connected CRM are trigger.crm_record_changed@1. The run is about the person (record person); {{trigger.accountId}} is their account when they have one. {{trigger.change}} is created or updated, {{trigger.changedFields}} names the fields that changed, {{trigger.changes.<field>.from}} and {{trigger.changes.<field>.to}} hold their values (up to 20 fields, 500 characters each), {{trigger.actor.kind}} (user, api, agent, workflow or system) and {{trigger.actor.memberId}} say who made it, {{trigger.occurredAt}} when. Needs the workflows_power feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"on":{"description":"Which changes start a run: created, updated or both (default updated). A lead trigger takes updated only: trigger.new_leads@1 starts on new leads.","type":["array","null"],"items":{"type":"string"},"default":null},"fields":{"description":"Start only when one of these fields changed, up to 20 (leave out for any field). Custom fields are custom.<key>.","type":["array","null"],"items":{"type":"string"},"default":null},"match":{"description":"Start only when each named field changed this way: field -> {\"to\": value, \"from\": value}, either one or both, each a value or a list of values (any of them). Up to 5 fields; all must hold.","type":["object","null"],"default":null},"includeWorkflowChanges":{"description":"Also start on a change another workflow made (default false). Needs oncePerRecordDays of 1 or more. A workflow never starts on a change its own steps saved, but work a step hands to Kenso to finish later (research, finding an email or phone) can start it again: fields or oncePerRecordDays stop that. Not on a lead trigger.","type":"boolean","default":false},"oncePerRecordDays":{"description":"Start at most one run per record every this many days: 0 to 365 (default 0, a run for every change).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.person_mapped@1","key":"trigger.person_mapped","version":1,"kind":"trigger","title":"Person mapped to an account","description":"Starts a run when a person is added to an account's buying committee (a new stakeholder), by a user, an agent, the API, committee mapping or a workflow. The run is about that person (record person). {{trigger.personId}}, {{trigger.accountId}} and {{trigger.stakeholderId}} name the person, the account and the stakeholder row; {{trigger.role}} is the committee role (champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown) and {{trigger.actorKind}} who added them. Set roles to react only to some roles, for example a new champion. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"person","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"roles":{"description":"Only these committee roles: champion, economic_buyer, approver, evaluator, user, executive_sponsor, blocker, unknown. Leave out for every role.","type":["array","null"],"items":{"type":"string"},"default":null}}}},{"type":"trigger.places@1","key":"trigger.places","version":1,"kind":"trigger","title":"Google Maps places","description":"Once a day, runs a Google Maps places search you set here (what to look for, and a location or a map area, with optional filters) and starts one run for each place your workspace has not processed yet. A place counts as processed once any workflow delivered it, and a place this workflow already ran on never starts it again. Each read takes up to `maxPlaces` new places (100 by default, at most 1000) from at most 5 pages of 200 places, and the next read continues where it stopped; once the search has no more places, it starts again from the top after 30 days. Each page costs 1 credit (a page read again within 30 days too), counts against this workflow's monthly credit limit, and is not read when that limit or the workspace's credits cannot pay for it, so a read costs at most 5 credits, also when it finds no new place. Places without a website are left out unless filters.hasWebsite is false. The first read runs a few minutes after publishing. The run is about that place: {{place.*}} holds its fields, and {{trigger.placeId}}, {{trigger.name}}, {{trigger.website}}, {{trigger.domain}} and {{trigger.query}} describe it. Needs the Places search feature.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"place","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"search_places"}],"inputSchema":{"type":"object","properties":{"query":{"description":"What to look for on Google Maps, such as \"dentists\" or \"coffee shops\". At most 200 characters.","type":"string"},"location":{"description":"Where to look: a city, region or address, such as \"Austin, TX\". Set this or area. At most 200 characters.","type":["string","null"],"default":null},"area":{"description":"Where to look, as a map area: its center (lat, lng) and zoom (3 to 21). Set this or location; area wins when both are set.","type":["object","null"],"properties":{"lat":{"type":["string","number"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"},"lng":{"type":["string","number"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"},"zoom":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["lat","lng","zoom"],"default":null},"country":{"description":"Two-letter country code (ISO 3166-1) to search in, such as us.","type":["string","null"],"default":null},"lang":{"description":"Language code for place names and categories, such as en or en-GB.","type":["string","null"],"default":null},"filters":{"description":"Free filters applied to every page: minRating, minReviews, hasWebsite (true by default), hasPhone, openNow, priceLevels, claimed, categories.","type":["object","null"],"properties":{"minRating":{"type":["string","number","null"],"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","default":null},"minReviews":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"hasWebsite":{"type":"boolean","default":true},"hasPhone":{"type":["boolean","null"],"default":null},"openNow":{"type":["boolean","null"],"default":null},"priceLevels":{"type":["array","null"],"items":{"type":"string"},"default":null},"claimed":{"type":["boolean","null"],"default":null},"categories":{"type":["array","null"],"items":{"type":"string"},"default":null}},"default":null},"maxPlaces":{"description":"New places to start runs for in each read, from where the last read stopped. 1 to 1000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["query"]}},{"type":"trigger.reply@1","key":"trigger.reply","version":1,"kind":"trigger","title":"Reply received","description":"Starts a run when a lead replies to a campaign email and Ken has classified the reply. By default only interested replies start a run; set classes to any of interested, not_interested, automated, hard_bounce, soft_bounce, unsubscribe, out_of_office, ndr, complaint, negative, objection, wrong_contact, referral, question (workspaces with Question replies on), and campaignId to one campaign. The run is about that lead (record lead). {{trigger.classification}} is the class, {{trigger.messageId}} and {{trigger.threadId}} the email, {{trigger.leadId}} and {{trigger.campaignId}} the lead and campaign, {{trigger.receivedAt}} when it arrived. A reply that is classified again starts no second run. {{trigger.followUpAt}} is when to follow up (the date the lead asked for, else the class rule; a negative reply gets a date that only a workspace opted in to reviving negative replies uses; null for a class Ken never revives) and {{trigger.followUpSource}} where it came from (asked, out_of_office or none). Set oncePerRecordDays (1 to 365) for one run per lead in that many days. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"classes":{"description":"Reply classes that start a run: interested, not_interested, automated, hard_bounce, soft_bounce, unsubscribe, out_of_office, ndr, complaint, negative, objection, wrong_contact, referral, question (workspaces with Question replies on). Default [\"interested\"].","type":["array","null"],"items":{"type":"string"},"default":null},"campaignId":{"description":"Only replies to this campaign. Leave out for every campaign.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"oncePerRecordDays":{"description":"One run per lead in this many days (1 to 365). Leave out for a run per reply.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"trigger.run_failed@1","key":"trigger.run_failed","version":1,"kind":"trigger","title":"Workflow run failed","description":"Starts a run when a run of another workflow in the workspace fails (test runs excluded). Use it to alert the team in Slack or open a task. Set workflowIds to watch only some workflows; a workflow never starts on its own failures. The run has no record (record none). {{trigger.workflowName}}, {{trigger.workflowId}} and {{trigger.runId}} name the failed run, {{trigger.failedNodeId}} the step that failed, {{trigger.errorClass}} (temporary, permanent, setup, budget) and {{trigger.errorMessage}} why, {{trigger.failedAt}} when. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"pipeline","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"workflowIds":{"description":"Only failures of these workflow ids. Leave out for every other workflow in the workspace.","type":["array","null"],"items":{"type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"default":null}}}},{"type":"trigger.sales_navigator@1","key":"trigger.sales_navigator","version":1,"kind":"trigger","title":"Sales Navigator search","description":"Once a day, reads a Sales Navigator account search or account list through your own connected LinkedIn seat with Sales Navigator, adds the companies that are not in Accounts yet (matched by website domain, like the Accounts import), and starts one run for each account it added. Companies already in Accounts, and companies Sales Navigator shows without a website, start no run. Each read takes the first `maxCompanies` companies (100 by default, at most 1000, and at most 7 pages of the list), and counts against the seat's daily Sales Navigator read limit. The first read runs a few minutes after publishing. A seat that is disconnected or has no Sales Navigator is skipped until it is reconnected; a seat that was removed fails the trigger, and so does a seat someone other than the person who last saved the workflow connected. New accounts are added without research, so the trigger itself spends no credits; add an ai.research step to research them within the workflow's limits. The run is about that account: {{account.*}} holds its fields, {{trigger.accountId}}, {{trigger.created}} (true), {{trigger.domain}}, {{trigger.name}}, {{trigger.linkedinUrl}} and {{trigger.url}} describe it. Needs the Sales Navigator and Accounts features, and publishing it needs Accounts edit and the import permission, like the Accounts import.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"apps","systemOnly":false,"requires":[{"kind":"flag","key":"sales_navigator"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"linkedinAccountId":{"description":"The LinkedIn seat that reads the search: a seat you connected in Settings > LinkedIn whose LinkedIn account has Sales Navigator. Pick it from GET /v1/linkedin-accounts. The person who last saves the workflow must be the one who connected the seat.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"url":{"description":"A Sales Navigator account search or account list, copied from the browser's address bar, such as https://www.linkedin.com/sales/search/company?query=... or https://www.linkedin.com/sales/lists/company/123.","type":"string"},"maxCompanies":{"description":"Companies to read each day, from the top of the search or list. 1 to 1000.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":100}},"required":["linkedinAccountId","url"]}},{"type":"trigger.saved_list@1","key":"trigger.saved_list","version":1,"kind":"trigger","title":"Saved list","description":"Reads a saved company list on a schedule: once when the workflow is published, or now and then every hour, day or week. The list is `savedListId` (from GET /v1/saved-lists) and the cadence the source's `schedule`. Each read adds the list's companies to Accounts by their website domain (a company already in Accounts is matched, one without a domain is skipped, members who opted out are left out) and starts one run for each account, so every scheduled read runs every company on the list again. Accounts are added without research, so the trigger spends no credits; add an `ai.research@1` step to research them within the workflow's limits. A Bulk import source: it needs a `schedule`. The list must be a company list of this workspace; a people list, a deleted list, another workspace's list or a private list of someone other than the person who published the workflow fails the trigger. The run is about that account: {{account.*}} holds its fields, {{trigger.recordId}} is its id and {{trigger.scheduledFor}} the slot that read it. Needs the workflow sources and Accounts features.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"bulk_import","sourceGroup":"ken_data","systemOnly":false,"requires":[{"kind":"flag","key":"workflow_sources"},{"kind":"flag","key":"accounts"}],"inputSchema":{"type":"object","properties":{"savedListId":{"description":"The saved list to read: a company list of this workspace, from GET /v1/saved-lists (kind companies).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"}},"required":["savedListId"]}},{"type":"trigger.schedule@1","key":"trigger.schedule","version":1,"kind":"trigger","title":"On a schedule","description":"Starts one run on a fixed cadence: every hour (at the top of each UTC hour), every day at a set time, or every week on a set day. Set `every` to hour, day or week; a day runs at `at` (HH:mm) in `timezone`, and a week on `weekday` at `at`. Use it for digests, periodic syncs and recurring checks. The run is about no record. {{trigger.scheduledFor}} is the slot (UTC), {{trigger.firedAt}} when it fired and {{trigger.timezone}} the zone. A missed slot (downtime) fires once when it can, never once per missed slot. A day can be limited to some days with `weekdays` (a list of day names). Set `every` to cron for a five-field `cron` expression (minute, hour, day of month, month, day of week) in `timezone`, with fire times at least 15 minutes apart. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"bulk_import","sourceGroup":"time","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"every":{"description":"hour, day or week. Or cron, with a five-field expression in cron.","type":"string"},"at":{"description":"Local time of day as HH:mm (24-hour) in timezone. Ignored for hour.","type":"string","default":"09:00"},"weekday":{"description":"English day name (monday ... sunday). Used only when every is week.","type":"string","default":"monday"},"timezone":{"description":"IANA time zone id, e.g. Europe/Berlin or America/New_York.","type":"string","default":"UTC"},"weekdays":{"description":"With every day: the days it fires on, 1 to 7 distinct English day names (monday ... sunday). Left out, it fires every day.","type":["array","null"],"items":{"type":"string"},"default":null},"cron":{"description":"With every cron (at and weekday are ignored): five fields - minute, hour, day of month, month, day of week - read in timezone. Numbers, *, lists, ranges and steps only; fire times at least 15 minutes apart.","type":["string","null"],"default":null}},"required":["every"]}},{"type":"trigger.signal@1","key":"trigger.signal","version":1,"kind":"trigger","title":"Signal fired","description":"Starts a run when Ken detects a signal about a lead: funding, headcount_growth, headcount_decline, job_change, icp_timing, tenure, new_in_seat, promotion, reply, click, open or dormant. The run is about that lead (record lead). {{trigger.signal}} is the signal name, {{trigger.leadId}} and {{trigger.campaignId}} the lead and its campaign, {{trigger.payload}} the signal's own details and {{trigger.occurredAt}} when it happened. Use oncePerRecordDays to run at most once per lead and signal in that many days. watch \"dream_list\" only matches signals marked as about a dream-list account, and no Kenso signal carries that mark yet, so it matches nothing today. Test signals are ignored. When a send step reaches the lead's account, a funding, headcount_growth, job_change, new_in_seat or promotion signal is stored on that account (its Signals list) first, once per event, so the email may name it. Free. To start on companies that are hiring, use trigger.job_posts@1 (one run per company with matching job posts) instead.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"buying_signals","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"signals":{"description":"Signals that start a run: funding, headcount_growth, headcount_decline, job_change, icp_timing, tenure, new_in_seat, promotion, reply, click, open, dormant. At least one. To start on companies that are hiring, use trigger.job_posts@1 (one run per company with matching job posts) instead.","type":"array","items":{"type":"string"}},"watch":{"description":"\"dream_list\": only signals marked as about a dream-list account. No Kenso signal carries that mark yet, so this watch matches nothing today. Leave out for every signal.","type":["string","null"],"default":null},"oncePerRecordDays":{"description":"Start at most one run per lead and signal every this many days. Leave out to run on every signal.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}},"required":["signals"]}},{"type":"trigger.studio_form@1","key":"trigger.studio_form","version":1,"kind":"trigger","title":"Studio form sent","description":"Starts a run when someone fills in and sends a form on one of the workspace's Studio pages. Studio pages are served on the workspace's own link host, so this is the form to link in outreach. Set assetId to one page and formId to one form on it (any case); leave either out for all. A submit Kenso judges automated (a scanner or a bot) starts no run. The run is about the lead when the page link is a lead's (record lead); a page that is not a lead's (an account's page or a shared link) runs with no record. oncePerRecordDays (0 to 365, default 0) starts at most one run per lead in that many days; 0 starts one for every submit. {{trigger.fields}} holds what was typed, by field name, as text ({{trigger.fields.email}}); a field that asks for a password, card or ID number is never kept. {{trigger.assetId}} and {{trigger.assetTitle}} are the page, {{trigger.formId}} the form, {{trigger.submittedAt}} when, and {{trigger.leadId}}, {{trigger.personId}} and {{trigger.accountId}} whose link it was. Needs the workflows_power and Studio features. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"},{"kind":"flag","key":"studio"}],"inputSchema":{"type":"object","properties":{"assetId":{"description":"Only forms on this Studio page (its id). Leave out for every Studio page of the workspace.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"formId":{"description":"Only the form with this id on the page, as the page names it (for example book_demo; any case). Leave out for every form.","type":["string","null"],"default":null},"oncePerRecordDays":{"description":"Start at most one run per lead every this many days: 0 to 365 (default 0: every submit starts a run). A page that is not a lead's starts a run on every submit.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":0}}}},{"type":"trigger.system_contacts@1","key":"trigger.system_contacts","version":1,"kind":"trigger","title":"Kenso pipeline contacts","description":"Kenso's own pipeline only (system workflows): starts one run for every lead the old pipeline jobs of `stage` would take now (email_pipeline: the email finders and verifiers, while the workspace's jobs phase 1 flag is on; ai_qualification, ai_personalization, ai_segmentation: the AI flow jobs' contacts, with {{trigger.campaignId}} and {{trigger.campaignSegmentId}}, while its jobs phase 2 flag is on). {{lead.*}} holds the lead; {{trigger.path}} is find or verify, {{trigger.providers}} the finder stages left for the lead, {{trigger.uploadedEmailId}} the lead's uploaded email Findymail checks before a find, and {{trigger.emailId}}, {{trigger.email}}, {{trigger.attempts}} and {{trigger.lastAttemptAt}} the address to verify. linkedin_due (jobs phase 2): one run per due LinkedIn state of the lead, {{trigger.stateId}} with its {{trigger.stepOrder}} and {{trigger.dueAt}}. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"system","systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"stage":{"description":"The pipeline stage whose contacts start runs: email_pipeline, ai_qualification, ai_personalization, ai_segmentation or linkedin_due.","type":"string"}},"required":["stage"]}},{"type":"trigger.system_signal@1","key":"trigger.system_signal","version":1,"kind":"trigger","title":"Kenso campaign trigger signal","description":"Kenso's own campaign triggers only (system workflows): starts one run for every signal of `signalType` about a lead while the workspace's jobs phase 1 flag is on, for the campaign trigger `definitionId`. {{trigger.*}} is the signal as the trigger evaluation job reads it: {{trigger.signalId}}, {{trigger.signalType}}, {{trigger.source}}, {{trigger.contactId}}, {{trigger.campaignId}}, {{trigger.campaignSegmentId}}, {{trigger.payloadJson}}, {{trigger.synthetic}}, {{trigger.occurredAt}}, {{trigger.ingestedAt}} and {{trigger.signalDedupKey}}. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"lead","workflowType":"signal","sourceGroup":"system","systemOnly":true,"requires":[],"inputSchema":{"type":"object","properties":{"definitionId":{"description":"The campaign trigger (trigger_definition id) the run evaluates.","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$"},"signalType":{"description":"The campaign trigger's signal type as Kenso stores it (e.g. LinkClicked): only signals of this type start a run.","type":"string"}},"required":["definitionId","signalType"]}},{"type":"trigger.webhook@1","key":"trigger.webhook","version":1,"kind":"trigger","title":"Webhook received","description":"Starts a run each time the workflow's own webhook URL receives a JSON POST (publishing creates the URL; it is shown in the trigger settings and returned as webhook.url when the workflow is read). Without createPerson the run is about no record and no lead or contact is created; with it, the run is about the person it creates or matches, so send.email, studio.page and account steps act on that person and their account. {{trigger.fields.<name>}} holds the mapped values (email, first_name, last_name, company_name, ... and custom variables by name), {{trigger.raw}} the whole body, plus sourceId, sourceName and receivedAt. Pick a `preset` (hubspot_forms, typeform, webflow, tally, rb2b, vector, generic, zapier, make, n8n) or give a `mapping`. typeform and tally map the questions labelled Email, First name, Last name, Company and Phone (typeform also reads the hidden fields email, first_name, last_name and company; tally falls back to the first four fields in order, each only a text field no label took). generic reads flat keys (email, first_name, last_name, full_name, company, company_domain, title, phone, linkedin_url); zapier, make and n8n are generic. `createPerson` (default true with a preset, false with a mapping) creates or updates the person first and adds personId, accountId and created (true only on the delivery that created the person); it needs lead_intake: while intake is off or over its limit the delivery starts no run and the sender is asked to retry, and a body intake cannot take (no email, LinkedIn URL or name with a company domain) starts the run without a person. `dedupPath` (e.g. form_response.hidden.email) with `dedupWindowDays` starts one run per value. Set `respond` ({} or { \"waitSeconds\": 1 to 25, \"body\": \"envelope\" or \"outputs\" }) to answer the sender with the run's interface.outputs: the request waits (10 seconds by default) and gets 200 { status, runId, outputs }, or with body outputs the outputs object alone (a failed run is then 502). A run not finished in time answers 202 with its runId, so keep waits and approvals out of such a workflow. Fast lane. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"none","workflowType":"signal","sourceGroup":"inbound","systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"preset":{"description":"A preset that pre-fills the mapping: hubspot_forms, typeform, webflow, tally, rb2b, vector, or generic (flat keys), with zapier, make and n8n as generic.","type":["string","null"],"default":null},"mapping":{"description":"Payload fields to copy into trigger.fields: target lead field (or custom_variable with variableName) and a payload path such as data.email. Overrides the preset.","type":["array","null"],"items":{"type":"object","properties":{"target":{"type":"string"},"variableName":{"type":["string","null"]},"useAsAiContext":{"type":"boolean"},"fallback":{"type":["boolean","null"]},"source":{"type":"object","properties":{"kind":{"type":"string"},"path":{"type":["string","null"]},"value":{"type":["string","null"]},"labelPath":{"type":["string","null"]},"valuePath":{"type":["string","null"]},"label":{"type":["string","null"]},"labelsPath":{"type":["string","null"]},"idPath":{"type":["string","null"]},"index":{"type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$"}}}}},"default":null},"dedupPath":{"description":"Payload path whose value makes the dedup key, e.g. form_response.hidden.email. Deliveries with the same value start one run.","type":["string","null"],"default":null},"dedupWindowDays":{"description":"How many days (1 to 3650) a dedup key blocks another run. Without it a key blocks forever.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null},"createPerson":{"description":"Create or update the person (lead intake) before each run, run about that person, and add personId, accountId and created to the trigger. Defaults to true with a preset and false with a mapping. Needs lead_intake. While it is off, past the peopleIntake quota, or when intake loses a race, the delivery starts no run and answers 503 or 429 with Retry-After so the sender retries; a body intake cannot take (no email, LinkedIn URL or name with a company domain) starts the run without a person. created is true only on the delivery that created the person, so a sender's retry reads false.","type":["boolean","null"],"default":null},"respond":{"description":"Set it to answer the sender with the run's result: the request waits for the run and gets the workflow's interface.outputs. Needs interface.outputs. A run that is not finished in time, or a workspace past its limits, answers 202 with the runId, never an error.","type":["object","null"],"properties":{"waitSeconds":{"description":"How many seconds the sender waits for the run: 1 to 25. Default 10.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null,"minimum":1,"maximum":25},"body":{"description":"envelope (default): { status, runId, outputs }, and a failed run is 200 with an error. outputs: the outputs object is the whole body, and a failed run is 502.","type":["string","null"],"default":null,"enum":["envelope","outputs",null]}},"default":null}}}},{"type":"trigger.website_visit@1","key":"trigger.website_visit","version":1,"kind":"trigger","title":"Website visit","description":"Starts a run when a known person, or a company a visitor-ID provider matched, views a page of your site (the ken.js snippet from Settings > Website Tracking). The run is about the visit's account (record account): a known person's account, or, with who company or any, the matched company's account, which Kenso creates from the matched domain (source website_visit) when the visit has none yet, so it fires for companies new to the workspace too. A visit that ends with no account starts no run: a known person on no account, or a matched company that gets none because account creation is off for the workspace and no account has the domain, the domain was removed from one of your accounts, it is your own company (one of your site's domains), the domain is not a company domain, or the match came more than 3 days after the visit. {{trigger.accountId}} is the account, {{trigger.personId}} the person (absent for a company match), {{trigger.path}} and {{trigger.pageLabel}} the page, {{trigger.points}} its points, {{trigger.known}} and {{trigger.highIntent}} whether the person is known and the page is tagged, {{trigger.companyDomain}} the matched domain, {{trigger.companyConfidence}} how sure the company match is (high or medium for a Kenso visitor ID match; a Dealfront match may also be low; null for a person, a provider webhook match or no match), {{trigger.source}} how Ken knows the visitor (link_click, form, booking or identify) or which provider matched the company, and {{trigger.visitsInWindow}} the account's visits within withinDays. who is known_person (default), company or any; pages is high_intent (default: pages tagged in Settings > Website Tracking, and only those count) or any; minVisits within withinDays waits for repeat visits; oncePerRecordDays runs at most once per account in that many days. Needs the website signals feature. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":"account","workflowType":"signal","sourceGroup":"website","systemOnly":false,"requires":[{"kind":"flag","key":"website_signals"}],"inputSchema":{"type":"object","properties":{"who":{"description":"Whose visit starts a run: known_person (a person Ken knows from a campaign link click, a form or a booking; default), company (a company a visitor-ID provider matched, with no known person) or any.","type":"string","default":"known_person","enum":["known_person","company","any"]},"pages":{"description":"Which pages start a run and count toward minVisits: high_intent (pages tagged in Settings > Website Tracking; default) or any.","type":"string","default":"high_intent","enum":["high_intent","any"]},"minVisits":{"description":"Start only once the account has this many human visits to those pages within withinDays, this one included: 1 to 50 (default 1).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":1},"withinDays":{"description":"The window minVisits and visitsInWindow count in, in days: 1 to 30 (default 7).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":7},"oncePerRecordDays":{"description":"Start at most one run per account every this many days. Leave out to run on every matching visit.","type":["string","integer","null"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":null}}}},{"type":"webhook.send@1","key":"webhook.send","version":1,"kind":"action","title":"Send webhook","description":"POSTs a JSON payload to a webhook URL, for example your own backend or an automation tool, and returns the status. Every request carries Ken-Idempotency-Key (wf:<runId>:<stepId>:<iteration>, the same on every retry, so the receiver can drop duplicates) and Ken-Timestamp (unix seconds); with a signing secret it also carries Ken-Signature: v1=<hex HMAC-SHA256 of \"<timestamp>.<body>\">. 2xx succeeds; 429, 5xx and timeouts are retried; other 4xx fail permanently; private and internal addresses are refused. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"external","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[],"inputSchema":{"type":"object","properties":{"url":{"description":"Absolute http or https URL of the receiver, on port 80, 443 or 8080-8090.","type":"string"},"payload":{"description":"The JSON body to POST."},"secretName":{"description":"Name of the workspace secret holding the signing key. Set secret to {{secrets.<this name>}}.","type":["string","null"],"default":null},"secret":{"description":"The signing key, as {{secrets.NAME}}. When set, the request carries a Ken-Signature header.","type":["string","null"],"default":null}},"required":["url","payload"]}},{"type":"webhook.wait@1","key":"webhook.wait","version":1,"kind":"action","title":"Wait for a webhook","description":"Pauses the run until another system posts to the run's resume URL, then continues with what was posted. Give that system the URL in an earlier step, for example an http.request@1 whose body carries {{run.resumeUrl}}; it is one signed URL per run and needs no other credential. The other system sends one POST with any body up to 256 KB: JSON is parsed into body, anything else arrives as body.raw. A post that arrives before this step starts is kept for one hour and applied within a few seconds of the step starting to wait. If nothing arrives within timeoutSeconds (default one day, at most 30 days) the step succeeds with timedOut true, or fails when onTimeout is fail. Later steps read {{<step>.body.<field>}} and {{<step>.timedOut}}. orEvent (with orMatch) also ends the wait when that event, for example reply.received, comes first for the run's lead, person or account; resumedBy then says webhook, event or timeout, and event holds { type, payload } when the event won. The URL is for systems, not people: do not put it in an email to a lead. In a test run the step does not wait and returns its example. Free.","cost":{"free":true,"action":null,"actionByTier":null,"chargeOn":"call","freeOnCustomerKey":false},"sideEffects":"none","recordType":null,"workflowType":null,"sourceGroup":null,"systemOnly":false,"requires":[{"kind":"flag","key":"workflows_power"}],"inputSchema":{"type":"object","properties":{"timeoutSeconds":{"description":"How long to wait for a post to the run's resume URL, 60 to 2592000 seconds (30 days). Default 86400 (one day).","type":["string","integer"],"pattern":"^-?(?:0|[1-9]\\d*)$","default":86400,"minimum":60,"maximum":2592000},"onTimeout":{"description":"What happens when nothing is posted in time: continue (the step succeeds with timedOut true) or fail (the step fails).","type":"string","default":"continue","enum":["continue","fail"]},"orEvent":{"description":"An event that also ends the wait when it comes first for the run's lead, person or account, for example reply.received or meeting.scheduled (any event logic.wait_for_event@1 takes). The run must be about a lead, person or account. Leave it out to wait for the post alone.","type":["string","null"],"default":null},"orMatch":{"description":"With orEvent: payload fields the event must have, each equal to its value, as logic.wait_for_event@1's match (a list is one of). Null takes every orEvent for the run's record.","type":["object","null"],"default":null}}}}]}
|