First-party app
Encharge

Encharge

Encharge marketing automation: create and update people, tag them, read segments and person fields, send transactional email, track events and subscribe webhooks.

stable MarketingEmail

About

Encharge ships in the w6w first-party pack. It declares 17 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.encharge
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Marketing · Email

Overview

Encharge is a marketing-automation platform for SaaS: it keeps a profile for every person, tags and segments them from what they do in your product, and sends the right email at the right time. This app gives a workflow the same levers without opening the Encharge editor.

It creates or updates people (singly or in batches), reads them back, archives or permanently erases them, unsubscribes them and adds or removes tags, which is how a workflow starts or stops an Encharge flow. It reads dynamic segments and the people inside them, manages custom person fields, and reads account information.

It also sends transactional email from a template, custom HTML or plain text, records product events through the Ingest API (so events can trigger flows), and subscribes a URL to Encharge events such as a new person or a tag being added. Health checks confirm the API is serving; Encharge publishes no status page or rate-limit signal, so those are declared as absent.

Build with Encharge

Three routes to the same 17 actions. The Workflow tab is generated from Encharge's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Get Account Info

account-get

Read the account's name, id, status, timezone, site, active services and people count.

Send Transactional Email

email-send

Send one email through Encharge, from a template or as custom HTML or plain text. Give exactly one of Template, HTML or Text.

Track Event

event-track

Record an event for a person through the Ingest API, creating or updating the person at the same time. Use the event name `identify` to only create or update the person.

Create Person Field

field-create

Create a custom person field so it can be set from Create or Update Person.

Delete Person Field

field-delete

Delete a custom person field by its name. The values people hold in it are lost.

List Person Fields

field-list

List every person field (built-in and custom) with its name, type and format.

Archive or Delete People

people-archive

Archive one or more people. Turn on `Permanently delete` to erase the person's data instead (GDPR erasure) — that cannot be undone.

Get People

person-get

Retrieve one or more people by email, user ID or Encharge ID. Returns a `users` list with each person's fields.

Unsubscribe Person

person-unsubscribe

Unsubscribe a person so Encharge sends them no more email.

Create or Update Person

person-upsert

Create a person, or update them when one with the same email, user ID or Encharge ID already exists. Custom person fields go in `Other fields`.

Create or Update People (batch)

person-upsert-batch

Create or update several people in one call from a JSON array. Each object needs an email, userId or id, plus any person fields to set.

List Segments

segment-list

List every dynamic segment in the account, with its id, name and conditions.

List People in Segment

segment-people-list

List the people currently in a segment, with optional paging, sorting and a choice of which person fields to return.

Add Tags to Person

tag-add

Add one or more tags to an existing person. Separate several tags with commas.

Remove Tags from Person

tag-remove

Remove one or more tags from an existing person. Separate several tags with commas.

Create Webhook Subscription

webhook-create

Subscribe a URL to an Encharge event. Encharge POSTs the person's data to it whenever the event happens.

Delete Webhook Subscription

webhook-delete

Delete an event subscription by its id.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Encharge's real ids.

{
  "manifestVersion": "2",
  "name": "encharge-example",
  "steps": [
    {
      "id": "event-track",
      "uses": {
        "app": "io.w6w.encharge",
        "action": "event-track",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "name": "<name>"
      }
    }
  ]
}

Here are some of the things you can do

  • Track Event

    perform
    event-track
  • Get Account Info

    read
    account-get
  • Send Transactional Email

    perform
    email-send
  • Create Person Field

    perform
    field-create
  • List Person Fields

    read
    field-list

+12 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Encharge, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Encharge. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "event-track",
  payload: {
    name: "<value>",
    // email: "<value>",
    // userId: "<value>",
    // firstName: "<value>",
    // lastName: "<value>",
    // tags: "<value>",
    // ip: "<value>",
    // userFields: "<value>",
    // properties: "<value>",
    // sourceIp: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action event-track --payload '{"name":"<value>"}'

Give an AI agent Encharge — without giving it Encharge's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.encharge#event-track",
    "input": {
      "name": "<name>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Encharge connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Encharge's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Encharge itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Encharge declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Encharge platform status

dependency

API reachable

Unauthenticated GET https://api.encharge.io/v1/accounts/info. A 401 carrying Encharge's JSON `{"error": {"message": …}}` passes — it proves the API and its auth layer are answering. Key validity is the derived `auth:*` check's job.

quota

Quota headroom