Callable agents callable-agents
Callable agents let you use an AI agent as a step in a Marketo Engage Smart Campaign. Build an agent in CX Enterprise Coworker for Marketo Engage, choose the lead fields it reads and updates, and publish it for use in campaigns. Agents can help clean up data, classify leads, enrich missing information, or screen form submissions.
Before you begin before-you-begin
- Decide which lead fields the agent needs to read and which fields it should update. Every input and output must map to a Marketo Engage lead field.
- Confirm that output fields are updatable. Read-only fields and program member fields are not supported.
How to use how-to-use
-
In your My Marketo, click the CX Enterprise Coworker for Marketo Engage tile.
-
In the upper-right, select Agents.
-
Select Create callable agent.
-
To use a template, click Start from a template and select one.
note NOTE For more details on callable agent templates, see Start from a template. -
To build your own, enter an Agent name and write Agent instructions describing how to process each lead.
-
Under Lead fields to send, add the lead fields the agent needs as inputs. Under Lead fields to update, add each value the agent should return and map it to an updatable lead field. Click Create when done.
-
Open a Smart Campaign and select the Flow tab.
-
Enter “callable” in the flow actions search. Locate your desired agent and drag it onto the canvas.
-
Test the campaign with a small set of leads. Review the activity log and confirm that output fields update as expected before activating the campaign for all leads.
Things to note things-to-note
- A callable agent processes each lead independently. Marketo Engage sends the mapped lead values to the agent, writes the returned values to the mapped lead fields, and continues to the next campaign step.
- You create and manage callable agents in CX Enterprise Coworker for Marketo Engage. No external connection is required.
- Published agents are not editable. To change an agent that is already published, you must create a new agent and update the relevant Smart Campaigns.
Create an agent create-an-agent
Create an agent from scratch create-an-agent-from-scratch
Leave the template picker empty. The form starts with one empty input field and one empty output field. Enter the name and instructions, then configure the input and output fields to match your business rule.
Start from a template start-from-a-template
Choose a template to prefill the instructions, input fields, and output fields. The agent is saved as your own copy, which you can edit or delete. If you delete an agent created from a template, the template becomes available in the picker again.
Write effective instructions write-effective-instructions
- Put general rules and examples in the agent instructions. Use field instructions to specify expectations for an individual output.
- Be specific. For example, “Remove legal suffixes such as Inc, LLC, and Corp” is clearer than “clean up company names.”
- Include examples of inputs and expected outputs, especially for edge cases.
- State what the agent should return when it cannot decide, such as “If you are unsure, return the original value.”
- Add a confidence output so campaign logic can route low-confidence results for review.
- Keep prompts concise. Shorter prompts run faster and cost less.
Save, publish, and manage agents save-publish-and-manage-agents
Save as a draft or publish save-as-a-draft-or-publish
Select Save to save the agent as a draft. Drafts can be edited but are not available as Smart Campaign flow steps. Select Save and publish when the agent is ready. Marketo Engage makes the agent available as a flow step and returns you to the agent list with a publication confirmation. Select Cancel to leave without saving.
Edit, check usage, or delete edit-check-usage-or-delete
- Select Edit on a draft to change it. Save keeps you on the page and shows an “Agent saved” confirmation. You can also select Save and publish, Cancel, or Delete.
- Published agents are frozen because Smart Campaigns may depend on them. Create a new agent to make changes.
- Check Used by to see which Smart Campaigns reference an agent before you delete an agent or change its campaign setup.
- You cannot delete an agent while a Smart Campaign still uses it. Remove the agent’s flow step from each listed campaign, then delete the agent.
Organizational rules integration organizational-rules-integration
Naming conventions naming-conventions
- Agent name: 1-100 characters and unique within the subscription. The name is also used in the Smart Campaign flow step. Choose a recognizable name, such as
Company Name Normalizer. - Output field name: Use letters, digits, and underscores. The name must start with a letter or underscore, be unique, and be no more than 64 characters.
- Reserved names: Some output names are reserved for system use. If a name is rejected, choose another name, such as
qualificationReasoninstead ofreason.
Required elements and supported fields required-elements-and-supported-fields
- Map every input field to a Marketo Engage lead field before saving.
- Configure at least one output field. Map each output to an updatable lead field; read-only fields are not available in the field picker.
- Program member fields are not supported. The field picker shows lead fields only.
- Supported output types are Text, Number, and True/False.
- To return a list, use a comma-separated text value and describe the expected format in the field instructions.
- Each successful run returns exactly the configured output fields.
Limits limits
Content screening and data handling content-screening-and-data-handling
When you create an agent or edit its instructions, Marketo Engage screens the agent instructions and output field instructions for policy violations, prompt injection, and data-exfiltration attempts. Examples include requests to reveal credentials or override agent behavior. If content is flagged, saving is blocked and a message may appear, such as “Prompt contains restricted content” or “Prompt failed content moderation.” Revise the text and save again.
- Access: Managing agents requires the Access admin permission. Agents and call history are isolated by subscription.
- Lead data protection: Lead data is passed separately from agent instructions, with safeguards that treat lead values as data rather than commands.
- Content policy: If a lead’s data violates the AI provider’s content policy, that lead receives an error activity instead of a result.
- Retention: Request and response payloads, including lead field values sent to the agent, are kept in call history for 30 days to support troubleshooting, then deleted automatically.
How callable agents run in a campaign how-callable-agents-run-in-a-campaign
- When the campaign runs, Marketo Engage sends the mapped lead field values for each qualifying lead to the agent.
- The agent processes each lead independently and returns the configured output fields.
- Marketo Engage writes the results to the mapped lead fields. Changed fields also appear as standard data value change activities.
- The campaign moves to the next step.
Processing is asynchronous. The flow step waits for a result up to the flow-step wait window in Marketo Engage. If one lead fails (for example, because of a timeout), that lead receives an error activity and other leads continue. Each result appears in the lead’s activity log for the callable agent.
Use output fields in campaign logic. For example, branch on Is bot to route spam submissions differently, or branch on confidence to send low-confidence results to a review step.
Pre-activation QA pre-activation-qa
Before activating a campaign for all leads:
- Run the campaign with a small test set of leads.
- Review each lead’s activity log and confirm that output fields updated correctly.
- Test edge cases, including missing values and unusual inputs.
- Confirm that campaign branches handle values such as low confidence or a bot/spam classification as intended.
Use cases use-cases
- Data cleanup: Standardize company names, format phone numbers to E.164, and normalize job titles when leads are created or imported.
- Bot and spam screening: Check submissions for gibberish names, suspicious emails, and repeated-digit phone numbers; branch the campaign based on the result.
- Disposable email detection: Identify temporary email addresses and route them differently from business addresses.
- Lead classification: Segment leads by company size, industry, persona, and intent to support routing or scoring.
- Lead enrichment: Infer missing details such as department, seniority, or whether a lead is a decision maker.
- Custom rules: Build a yes/no check or categorization that can be described as a lead-processing rule, such as flagging leads from a region or industry.
Troubleshooting troubleshooting
qualificationReason, and save again.Next steps next-steps
- Review the agent’s Used by list and confirm which Smart Campaigns will use it.
- Test the flow step with a small group of leads and validate activity logs and output fields.
- Use the output fields to add campaign branches for classifications or low-confidence results.
- Remove the agent flow step from all campaigns before deleting the agent.