| name | instantly-debug-bundle |
| description | Collect Instantly.ai debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or auditing campaign/account state.
Trigger with phrases like "instantly debug", "instantly support ticket",
"instantly diagnostic", "instantly audit", "collect instantly evidence".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*), Bash(npm:*), Grep |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","instantly","debugging","support"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Instantly Debug Bundle
Overview
Collect a comprehensive debug bundle from your Instantly workspace: campaign state, account health, warmup metrics, lead stats, webhook delivery status, and recent errors. Output is a JSON report suitable for support tickets or internal audits.
Prerequisites
- Completed
instantly-install-auth setup
- API key with
all:read scope (or individual read scopes for each resource)
Instructions
Step 1: Collect Full Debug Bundle
import { instantly } from "./src/instantly";
import { writeFileSync } from "fs";
interface DebugBundle {
timestamp: string;
workspace: unknown;
campaigns: unknown[];
accounts: unknown[];
warmup_analytics: unknown[];
webhooks: unknown[];
webhook_event_summary: unknown;
background_jobs: unknown[];
lead_count_by_campaign: Record<string, number>;
errors: string[];
}
async function collectDebugBundle(): Promise<DebugBundle> {
const bundle: DebugBundle = {
timestamp: new ().(),
: ,
: [],
: [],
: [],
: [],
: ,
: [],
: {},
: [],
};
{
bundle. = ();
} (: ) {
bundle..();
}
{
bundle. = ();
} (: ) {
bundle..();
}
{
bundle. = ();
} (: ) {
bundle..();
}
{
accounts = bundle. <{ : }>;
(accounts. > ) {
bundle. = (, {
: ,
: .({ : accounts.( a.) }),
});
}
} (: ) {
bundle..();
}
{
bundle. = ();
} (: ) {
bundle..();
}
{
bundle. = ();
} (: ) {
bundle..();
}
{
bundle. = ();
} (: ) {
bundle..();
}
( c (bundle. <{ : ; : }>).(, )) {
{
analytics = instantly<{ : }>(
);
bundle.[c.] = analytics.;
} {
bundle.[c.] = -;
}
}
bundle;
}