npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-toneclone

v1.0.3

Published

Write with AI without sounding like AI. Write with AI using your unique voice and style with a model trained on your writing. To get started, you'll need a ToneClone API key from https://app.toneclone.ai/api-keys

Readme

ToneClone for n8n

ToneClone for n8n is an n8n community node that lets you write with and train ToneClone personas directly from your workflows. Use it to write with AI without sounding like AI - in your unique voice and style, capture new training material, and orchestrate ToneClone alongside the rest of your automation stack.

  • Write content with your persona: Ask a trained persona to draft emails, posts, documents, and more.
  • Submit new training data: Upload plain text or binary files (PDF, DOCX, TXT, etc.) to improve a persona.
  • Work with knowledge cards: Pull structured knowledge into your generations so responses stay accurate.

This repository contains the full source, tests, and packaging assets for the n8n-nodes-toneclone npm package.

Installation

  1. Launch your self-hosted n8n instance (v1.38.0 or later recommended).
  2. Open Settings → Community Nodes in the editor UI.
  3. Add the package name n8n-nodes-toneclone and confirm the warning prompt.
  4. After installation, search for ToneClone in the node palette.

Alternatively, install via the CLI:

npm install n8n-nodes-toneclone

Credentials

The node uses a single credential type: ToneClone API.

  1. Sign in to ToneClone and generate an API key from Settings → API Keys.
  2. In n8n, open Credentials → New → ToneClone API.
  3. Paste your API key (tc_…) and leave the API URL set to https://api.toneclone.ai unless you are targeting a private environment.
  4. Click Test to verify connectivity.

Built-in personas are read-only. Upload operations require a persona that you or your team owns.

Operations

Write with your persona (resource = query)

  • Write with Your Persona: Produce text from a persona using an input prompt.
    • Persona – Select or reference a persona ID.
    • Prompt – Instruction or writing prompt for ToneClone.
    • Knowledge Card IDs (optional) – Enrich the prompt with stored knowledge.

Training (resource = training)

  • Upload Text: Provide raw text that will be used to train your persona's writing style

    • Persona – Target persona to train.
    • Content – Writing sample
    • Filename – A name for the writing sample
  • Upload File: Attach an existing binary file from the workflow input.

    • Persona – Target persona to train.
    • Input Binary Field – Name of the binary property holding the file.

Usage

Generate a follow-up email

  1. Start with a HTTP Request or Trigger node that captures meeting details.
  2. Add ToneClone → Write with Your Persona, select a persona, and map the meeting summary into the Prompt.
  3. Optional: attach a knowledge card containing your personal details or contact info.
  4. Use the response in downstream steps (e.g., send via Gmail or Slack).

Upload an existing document for training

  1. Fetch or receive a document or writing sample file, ensuring it is stored in the data binary property.
  2. Add ToneClone → Upload File, choose the persona, and set Input Binary Field to data.
  3. ToneClone stores the file, associates it with the persona for training, and returns the resulting file metadata.

Compatibility

  • Requires n8n 1.38.0+ (tested on 1.38.x and 1.39.x).
  • Node is written in TypeScript and compiled to JavaScript during the npm publish process.
  • Uses only the built-in n8n-workflow peer dependency—no runtime dependencies are bundled.

Development

# Install dependencies
yarn install  # or npm install

# Lint and test
npm run lint
npm test

# Build distributable assets
npm run build

Resources

License

MIT - ToneClone