API Endpoint for Instant Text Summarization via ApyHub - n8n Workflow

Use this n8n workflow to deploy a high-performance API endpoint that accepts text input and returns an AI-generated summary instantly. Perfect for custom application integration.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Developers needing a fast, serverless summarization API.

  • Technical writers automating documentation summary generation.

  • n8n users looking for advanced examples of integrating external job APIs.

  • Automation specialists seeking high-utility n8n templates for AI tasks.

Overview

This powerful n8n workflow provides a robust solution for integrating AI-powered text summarization into any external application or service. Instead of managing complex backend infrastructure, you simply deploy this n8n workflow and receive a dedicated, synchronous API endpoint.

This automation demonstrates advanced use of the n8n node structure by handling the entire job submission and polling process necessary for external AI services like ApyHub. This particular n8n template ensures that your calling service receives the summarized text immediately upon job completion, making it ideal for real-time applications. Utilizing this n8n workflow significantly reduces development time for implementing AI features.

How it Works

The entire process starts with the dedicated n8n trigger and proceeds through three main processing steps:


  1. Trigger Reception: The n8n workflow begins when the Receive Content Webhook node (the primary n8n trigger) receives a POST request. This request must contain the text content and an ApyHub token in the headers for authentication.

  2. Job Initiation: The Start Summarization Job n8n node immediately forwards the content to the ApyHub API. This action initiates the asynchronous summarization process and returns a jobid.

  3. Status Polling and Retrieval: The Get Summarization Result n8n node then uses the received jobid to poll the ApyHub API. While the sticky note implies polling, the HTTP Request node is configured to retrieve the status based on the job ID, effectively getting the result once processing is complete.

  4. Final Response: The final Respond with Summarized Content n8n node sends the resulting summarized text back to the original caller, completing the synchronous nature of this n8n workflow.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON code and import it into your self-hosted or cloud n8n instance using the 'New' -> 'Import from JSON' option.

  2. Activate the Webhook: After importing, activate the Receive Content Webhook n8n trigger node to generate its unique URL.

  3. Configure External Calls: This n8n workflow relies on the calling application to provide the apy-token in the request headers (specifically, apy-token). No separate credential setup is strictly required within the n8n node environment itself, as authentication is passed through the request headers.

  4. Testing: Send a POST request to the generated webhook URL with a JSON body containing the content to be summarized and the required ApyHub authentication header.

Node Details

Receive Content Webhook (n8n trigger):
Function: Serves as the public API endpoint, listening for incoming POST requests at the /summarize-content path.
Key Configuration: HTTP Method set to POST, Response Mode set to 'responseNode' to allow synchronous communication via the final response node.

Start Summarization Job (HTTP Request n8n node):
Function: Submits the received text and the authentication token to the ApyHub summarization API.
Key Configuration: Uses expressions {{ $json.body.content }} and {{ $json.headers['apy-token'] }} for dynamic data insertion.

Get Summarization Result (HTTP Request n8n node):
Function: Queries the ApyHub job status endpoint using the jobid returned by the previous step to retrieve the completed summary.
Key Configuration: URL is dynamically constructed using the job ID: .../status/{{ $json.jobid }}.

Respond with Summarized Content (n8n node):
Function: Sends the summarized output back to the service that initiated the n8n workflow via the webhook.
Key Configuration: Responds with all incoming items, delivering the final result JSON structure to the caller.

Related n8n Workflows

Free

Nodes: 4 Nodes
Updated: December 26 2025
View all
Created by
ist00dent
ist00dent

I’m a dedicated automation engineer passionate about no-code and low-code solutions. I design and implement robust n8n workflows—integrating APIs, databases, and messaging—to eliminate manual tasks and accelerate delivery. Leveraging Python and C#, I build scalable, adaptable automations that empower teams to focus on high-value work.

Featured*