Customjs

5 tools available

CustomJS is a code-first automation platform that enables seamless integration of custom JavaScript logic into various systems and technologies, allowing users to extend applications by writing functions for tasks like sending emails, generating PDFs, or updating CRM data fields.

Connect Customjs to Definable to triage issues, review pull requests, monitor builds. Personas call Customjs's 5 tools directly from chat or scheduled flows. Wire it into a triage, review, or release-management persona — every action runs scoped, reviewable, and logged.

Common workflows with Customjs

01

Triage incoming issues

  1. Webhook fires on every new issue
  2. Persona summarises and labels it
  3. Assigns the right engineer
02

Auto-review PRs

  1. Pull the diff
  2. Run a code-review persona
  3. Post structured feedback as PR comment
03

Failing-build alerts

  1. CI sends a failure event
  2. Agent inspects logs and stack trace
  3. Drops a debug summary in Slack
04

Release notes from commits

  1. Read commits since last tag
  2. Group by type with the model
  3. Post to a changelog channel

Customjs actions 5

Every Customjs action below is a callable tool any Definable persona can invoke.

Authenticate CustomJS API Key

Authenticate and validate a CustomJS API key. Returns workspace details, request limits, and decoded JWT token information including user email. Use this to verify an API key is valid before making other CustomJS API calls.

Convert HTML to PDF

Convert HTML content to a PDF document. Use this tool to generate PDF files from raw HTML markup. Supports: - Complete HTML documents or fragments - Inline CSS styling (colors, fonts, tables, borders, backgrounds) - Unicode characters and special symbols - Multi-page documents Returns raw PDF bytes suitable for file storage or download.

Convert HTML to PNG

Tool to convert HTML string to PNG image. Use when you need a PNG from HTML after preparing your markup.

Merge multiple PDFs into one

Merge multiple PDF files from URLs into a single PDF document. Use this tool when you need to combine two or more PDF documents into one. The PDFs are merged in the order provided. All input URLs must be publicly accessible. Returns a downloadable merged PDF file.

Run Puppeteer Script

Execute a Puppeteer script in a headless browser and capture a screenshot. Use this tool for browser automation tasks such as navigating to URLs, interacting with page elements, extracting data, or capturing visual snapshots of web pages. The script runs in a sandboxed Puppeteer environment with access to a 'page' object.

Frequently asked questions

What can I automate with Customjs on Definable?

Anything Customjs exposes through its API. Common developer tools workflows on Definable include triage issues, review pull requests, monitor builds. Personas can call any of the 5 Customjs tools directly, then chain the result into another integration without you writing code.

How does Customjs authentication work?

Customjs uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.

Is the Customjs integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 5 Customjs tools. You only need a separate Customjs subscription if Customjs itself charges per seat or per API call.

Is using Customjs through Definable secure?

Every call from a persona to Customjs is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

How do I get started with Customjs on Definable?

Sign up for Definable, open the integrations page, find Customjs, and connect via OAuth or API key. You can immediately attach Customjs to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

What Customjs actions does Definable expose?

Definable exposes all 5 Customjs actions as callable tools — including `Authenticate CustomJS API Key`, `Convert HTML to PDF`, `Convert HTML to PNG`, plus 2 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Ready to automate with Customjs?

Wire it up in minutes. No coding required.

← All integrations