Skip to content
Skillv1.0.0

loops

Send marketing and transactional emails with Loops. Use when a user asks to set up email marketing for a SaaS, create drip campaigns, send product update emails, or use a modern alternative to Mailchi

by terminalskills(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from terminalskills/skills (skills/loops/SKILL.md). Install upstream with npx skills add terminalskills/skills --skill loops. Copyright stays with the author (Apache-2.0).

Loops

Overview

Loops is email marketing built for SaaS. Clean UI, event-based automations, transactional emails, and marketing campaigns. Designed as a modern Mailchimp alternative for startups and product teams.

Instructions

Step 1: Transactional Email

// lib/loops.ts — Send transactional email via Loops API
export async function sendTransactional(
  email: string,
  transactionalId: string,
  data: Record<string, string>
) {
  await fetch('https://app.loops.so/api/v1/transactional', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${process.env.LOOPS_API_KEY}`,
    },
    body: JSON.stringify({
      email,
      transactionalId,    // template ID from Loops dashboard
      dataVariables: data,
    }),
  })
}

// Usage: send welcome email
await sendTransactional('user@example.com', 'welcome_email', {
  firstName: 'John',
  planName: 'Pro',
})

Step 2: Track Events

// Track events to trigger automated sequences
await fetch('https://app.loops.so/api/v1/events/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${process.env.LOOPS_API_KEY}`,
  },
  body: JSON.stringify({
    email: 'user@example.com',
    eventName: 'plan_upgraded',
    eventProperties: { plan: 'pro', mrr: 49 },
  }),
})

Step 3: Contact Management

// Create or update contact
await fetch('https://app.loops.so/api/v1/contacts/update', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${process.env.LOOPS_API_KEY}`,
  },
  body: JSON.stringify({
    email: 'user@example.com',
    firstName: 'John',
    userGroup: 'pro-users',
    plan: 'pro',
  }),
})

Guidelines

  • Free tier: 1,000 contacts, 2,000 emails/month.
  • Event-based automations: trigger email sequences from app events (signup, upgrade, churn risk).
  • Built for SaaS — has concepts like user groups, event properties, and lifecycle stages.
  • For transactional-only needs, Resend is simpler. For full marketing, Loops is better.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/terminalskills-skills-loops/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

terminalskills-skills-loops.ocm.jsonjson
{
  "ocm": "1",
  "id": "terminalskills-skills-loops",
  "kind": "skill",
  "name": "loops",
  "description": "Send marketing and transactional emails with Loops. Use when a user asks to set up email marketing for a SaaS, create drip campaigns, send product update emails, or use a modern alternative to Mailchimp for startups.",
  "publisher": "terminalskills",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "loops",
      "email",
      "marketing",
      "saas",
      "campaigns",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Send marketing and transactional emails with Loops. Use when a user asks to set up email marketing for a SaaS, create drip campaigns, send product update emails, or use a modern alternative to Mailchimp for startups."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/terminalskills/skills",
      "path": "skills/loops/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/terminalskills/skills/blob/HEAD/skills/loops/SKILL.md",
      "key": "terminalskills/skills/skills/loops/SKILL.md"
    },
    "compatibility": "Any platform via REST API",
    "license": "Apache-2.0"
  },
  "instructions": "# Loops\n\n## Overview\n\nLoops is email marketing built for SaaS. Clean UI, event-based automations, transactional emails, and marketing campaigns. Designed as a modern Mailchimp alternative for startups and product teams.\n\n## Instructions\n\n### Step 1: Transactional Email\n\n```typescript\n// lib/loops.ts — Send transactional email via Loops API\nexport async function sendTransactional(\n  email: string,\n  transactionalId: string,\n  data: Record<string, string>\n) {\n  await fetch('https://app.loops.so/api/v1/transactional', {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n",
  "cost": {
    "context_tokens": 531
  }
}

Fetch it by URL: GET /api/v1/registry/terminalskills-skills-loops/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.