Integrations · Loops
A Guild agent can create contacts, send transactional emails, fire workflow events, and pull engagement metrics in Loops without any manual steps in the Loops UI. Guild stores the API key server-side and injects it as a bearer token on every request, so agent code never sees the credential. Credential policies let you restrict which operations each agent may call, and every request is auditable through Guild’s credential proxy.
Book a demo
See how teams govern agents that use Loops.
Talk to sales
Get access to Guild, then connect Loops to your first agent.
What the Loops integration exposes
The tools cover contacts, campaigns, transactional emails, workflows, audience segments, email components, themes, and footers. Agents can create, update, delete, and retrieve each of those resources, send events to trigger workflows, check engagement and delivery metrics, validate email content against Guardian rules, and manage image uploads. Tools follow the naming prefixloops_ and can be narrowed with pick() to include only what an agent needs.
How it works
1
Open credentials in Guild
Go to Access & setup > Credentials in your Guild account. Click Connect, search for loops, and select it.
2
Paste your Loops API key
Enter the key in the API Key field. Guild sends it as a bearer token in the Authorization header on every outbound request.
3
Import and wire the tools
Import LoopsTools from
@guildai-services/guildai~loops and spread it into your agent’s tools object. Use pick() from the SDK tools docs to include only the tools your agent requires.Why Loops access needs governing in an agent context
Loops credentials in Guild can be scoped to an account, a single workspace, an individual member, or one installed agent. Guild stores the API key and injects it server-side, so agents never handle the secret directly. See Credentials for the full scoping model and resolution order. Credential policies add a second layer. You can write ALLOW and DENY rules that Guild’s proxy enforces before any request reaches Loops, restricting agents to specific operations such asloops_send_transactional_email while blocking destructive ones like loops_delete_workflow. Rules can be scoped to specific agents or workspaces on the same credential. See Credential policies for rule syntax and enforcement details. Without policies a credential starts with an allow-all default; deleting that default shifts the posture to deny-by-default for anything not explicitly covered.
About the Loops integration
Agents can create and manage contacts, campaigns, and automated workflows in Loops. They can compose and send transactional and campaign emails, track engagement metrics, and organize audience segments. Agents can also build and modify workflow graphs, email components, themes, and footers. The integration isguildai~loops.
Authentication
- Type: API key
- Header: Guild sends the key as a bearer token in the
Authorizationheader
Setup
1
Connect Loops
In Guild, go to Access & setup > Credentials, click Connect, select loops, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with theloops_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~loops:
All 82 tools
All 82 tools
Frequently asked questions
Can an agent trigger a Loops workflow from an external event?
Can an agent trigger a Loops workflow from an external event?
Yes. The
loops_send_event tool sends events to Loops that trigger workflows. The loops_get_event_pattern and loops_get_event_pattern_by_name tools let an agent look up the event pattern details before sending.Can I limit an agent to read-only access on my Loops account?
Can I limit an agent to read-only access on my Loops account?
Yes. Write a credential policy with DENY rules covering mutating operations such as
loops_create_*, loops_update_*, loops_delete_*, and loops_send_*, paired with an ALLOW rule for read operations. Guild’s proxy enforces the policy before any request reaches Loops. See Credential policies.Does the Loops integration support webhook events from Loops?
Does the Loops integration support webhook events from Loops?
No. The catalog entry lists no webhook events for this integration, so agents cannot receive inbound event notifications from Loops through Guild.
How does Guild authenticate to the Loops API?
How does Guild authenticate to the Loops API?
Guild sends the API key as a bearer token in the Authorization header on every request. The key is stored server-side; agent code never sees it. You connect the key once in Access & setup > Credentials, and Guild resolves it at runtime based on scope. See Credentials.
Put a governed agent on Loops this week
Book a demo
See how teams govern agents that use Loops.
Talk to sales
Get access to Guild, then connect Loops to your first agent.