Encharge marketing automation: create and update people, tag them, read segments and person fields, send transactional email, track events and subscribe webhooks.
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.
io.w6w.enchargeEncharge 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.
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.
account-get Read the account's name, id, status, timezone, site, active services and people count.
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.
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.
field-create Create a custom person field so it can be set from Create or Update Person.
field-delete Delete a custom person field by its name. The values people hold in it are lost.
field-list List every person field (built-in and custom) with its name, type and format.
people-archive Archive one or more people. Turn on `Permanently delete` to erase the person's data instead (GDPR erasure) — that cannot be undone.
person-get Retrieve one or more people by email, user ID or Encharge ID. Returns a `users` list with each person's fields.
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`.
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.
segment-list List every dynamic segment in the account, with its id, name and conditions.
segment-people-list List the people currently in a segment, with optional paging, sorting and a choice of which person fields to return.
tag-add Add one or more tags to an existing person. Separate several tags with commas.
tag-remove Remove one or more tags from an existing person. Separate several tags with commas.
webhook-create Subscribe a URL to an Encharge event. Encharge POSTs the person's data to it whenever the event happens.
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>"
}
}
]
}event-track account-get email-send field-create 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.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { 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); npm install -g @w6w/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.
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.
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.
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.
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).
Encharge declares its own checks, so its health is a property of the app rather than something the host guesses at.
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.