Latenode

Automate content summarization across web, PDFs, and databases

This template starts from a webhook that accepts a URL, PDF, or raw text. A website-to-text step loads a URL. OCR Space reads a PDF.

JavaScript cleans raw text. ChatGPT writes a short summary and the webhook responds with that text. Connect OCR Space and put the OCR Space API key on that connection. ChatGPT is a Latenode AI step.

Updated Sep 16, 2026Est. run: 14sEst. cost: $0.0009
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Summarizes a URL, PDF, or pasted text from one webhook
  • Reads PDFs with OCR Space
  • Loads web pages with website-to-text
  • Returns the ChatGPT summary on the webhook response

How it works

1
Trigger

Receive the content

The scenario starts when your webhook receives a URL, a PDF, or raw text.

2
Logic

Extract the source text

A website-to-text step loads a URL. OCR Space reads a PDF. JavaScript cleans pasted text.

3
AI

Write the summary

ChatGPT returns a short summary from the extracted text. ChatGPT is Latenode AI, so you do not paste an OpenAI key.

4
Action

Return the summary

The webhook responds with the summary so the caller can store or display it.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL. Send a JSON body with a URL, raw text, or a PDF file.

2

Connect OCR Space

Add an OCR Space connection and paste your OCR Space API key there. Use this path when the payload is a PDF or image.

3

Extract, summarize, and reply

Route URL input through website-to-text, file input through OCR Space, and raw text through JavaScript. Send the extracted copy to ChatGPT, then return the summary on the webhook response. ChatGPT is a Latenode AI node.

Requirements

A webhook caller that can POST a URL, raw text, or a PDF
An OCR Space account and API key stored on the OCR Space connection, if you send files
A summary length and focus you can set in the ChatGPT prompt

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.