Customjs
customjsCustomJS 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 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ónTool to authenticate a CustomJS API key. Use when verifying a user's API key before making further requests.
CUSTOMJS_AUTHENTICATE_API_KEYAcciónTool to authenticate a CustomJS API key. Use when verifying a user's API key before making further requests.
Parámetros de entrada
api_keystringObligatorioCustomJS API key to authenticate.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Convert HTML to PDFCUSTOMJS_CONVERT_HTML_TO_PDFAcciónTool 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.
CUSTOMJS_CONVERT_HTML_TO_PDFAcciónTool 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
codestringObligatorioJavaScript snippet that invokes the HTML2PDF converter
inputstringObligatorioHTML content to convert to PDF
returnBinarystringMust be 'true' to instruct API to return binary PDF data
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Convert HTML to PNGCUSTOMJS_CONVERT_HTML_TO_PNGAcciónTool to convert HTML string to PNG image. Use when you need a PNG from HTML after preparing your markup.
CUSTOMJS_CONVERT_HTML_TO_PNGAcciónTool to convert HTML string to PNG image. Use when you need a PNG from HTML after preparing your markup.
Parámetros de entrada
htmlstringObligatorioHTML content to convert into a PNG image
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Capture webpage screenshotCUSTOMJS_CREATE_SCREENSHOTAcciónTool to capture a screenshot of a webpage. Use when you need a visual snapshot of a URL.
CUSTOMJS_CREATE_SCREENSHOTAcciónTool to capture a screenshot of a webpage. Use when you need a visual snapshot of a URL.
Parámetros de entrada
urlstringObligatorioThe URL of the webpage to capture a screenshot from
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Merge multiple PDFs into oneCUSTOMJS_MERGE_PDFSAcciónTool to merge multiple PDF files into a single PDF. Use when you have multiple PDF URLs and want one combined PDF.
CUSTOMJS_MERGE_PDFSAcciónTool 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
codestringObligatorioJavaScript 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[]ObligatorioList of HTTP URLs pointing to the PDF files to merge
returnBinarystringObligatorioMust be "true" to receive the merged PDF as binary
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run Puppeteer ScriptCUSTOMJS_RUN_PUPPETEER_SCRIPTAcciónTool 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.
CUSTOMJS_RUN_PUPPETEER_SCRIPTAcciónTool 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
codestringObligatorioWrapper that invokes the PUPPETEER utility, e.g., "const { PUPPETEER } = require('./utils'); return PUPPETEER(input);"
inputstringObligatorioPuppeteer code to execute, e.g., "await page.goto('https://example.com');"
returnBinarybooleanWhether to return binary PNG data; set to true to receive screenshot image.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not