NAiOS IconNAiOS Logo
Volver al catálogo

Customjs

customjs

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.

Acciones
6
Triggers
0
Autenticación
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (6)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Authenticate CustomJS API KeyCUSTOMJS_AUTHENTICATE_API_KEYAcción

Tool to authenticate a CustomJS API key. Use when verifying a user's API key before making further requests.

Parámetros de entrada

  • api_keystringObligatorio

    CustomJS API key to authenticate.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Convert HTML to PDFCUSTOMJS_CONVERT_HTML_TO_PDFAcción

Tool to convert HTML to a PDF document. Use when you need to generate a PDF from raw HTML. Returns raw PDF bytes suitable for download or storage.

Parámetros de entrada

  • codestringObligatorio

    JavaScript snippet that invokes the HTML2PDF converter

  • inputstringObligatorio

    HTML content to convert to PDF

  • returnBinarystring

    Must be 'true' to instruct API to return binary PDF data

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Convert HTML to PNGCUSTOMJS_CONVERT_HTML_TO_PNGAcción

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

Parámetros de entrada

  • htmlstringObligatorio

    HTML content to convert into a PNG image

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Capture webpage screenshotCUSTOMJS_CREATE_SCREENSHOTAcción

Tool to capture a screenshot of a webpage. Use when you need a visual snapshot of a URL.

Parámetros de entrada

  • urlstringObligatorio

    The URL of the webpage to capture a screenshot from

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Merge multiple PDFs into oneCUSTOMJS_MERGE_PDFSAcción

Tool to merge multiple PDF files into a single PDF. Use when you have multiple PDF URLs and want one combined PDF.

Parámetros de entrada

  • codestringObligatorio

    JavaScript snippet that downloads each URL as base64 and invokes PDF_MERGE. For example: async (input) => { const files = await Promise.all(input.map(async url => { const r = await fetch(url); const b = await r.arrayBuffer(); return Buffer.from(b).toString('base64'); })); return PDF_MERGE(files); }

  • inputstring[]Obligatorio

    List of HTTP URLs pointing to the PDF files to merge

  • returnBinarystringObligatorio

    Must be "true" to receive the merged PDF as binary

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Run Puppeteer ScriptCUSTOMJS_RUN_PUPPETEER_SCRIPTAcción

Tool to run a Puppeteer script and capture a screenshot. Use when automating headless browser tasks and needing a PNG output. Use after confirming the script logic.

Parámetros de entrada

  • codestringObligatorio

    Wrapper that invokes the PUPPETEER utility, e.g., "const { PUPPETEER } = require('./utils'); return PUPPETEER(input);"

  • inputstringObligatorio

    Puppeteer code to execute, e.g., "await page.goto('https://example.com');"

  • returnBinaryboolean

    Whether to return binary PNG data; set to true to receive screenshot image.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not