Generate and Manage Short Links with GPT-4.1 and Data Storage — Flujo de trabajo n8n

Media complejidad Disparador14 nodos🏷️ Miscellaneous👁 1 vistaspor Nghia Nguyen

Descripción general

This AI Agent helps you create short links from your original URLs.
Each generated short link is automatically stored in a database table for easy management and tracking.

How It Works

Provide a long URL to the Agent.
The Agent saves your original link in the database.
It generates a short link in the following format:

Short link: https://{webhook_url}/webhook/shortLink?q={shortLinkId}

When users open the short link, they are automatically redirected to your original link.

How to Use

Nodos utilizados

CodeHTMLAI AgentOpenAI Chat ModelSimple MemoryCall n8n Workflow Tool

Vista previa del flujo de trabajo

Setup Guide
1. Add your_webhook_url to the 'Config' Node.
2. Set up OpenAI account
3. Create a database table named ShortLink with the fol
- originalLink
- shortLinkId
Agent
Create Short Link
Process Short Link Requests
memorymodeltool
I
Insert row
Generate shorlinkId
G
Get row(s)
W
When chat message received
AI Agent
OpenAI Chat Model
Simple Memory
G
GenerateShortLink
C
Config
Generate ShortLink
Call 'Create Short Link'
Page Redirect
R
Response
S
ShortLink API
14 nodes11 edges

Cómo funciona

  1. 1

    Disparador

    El flujo de trabajo comienza con un disparador disparador.

  2. 2

    Procesamiento

    Los datos fluyen a través de 14 nodos, connecting agent, chattrigger, code.

  3. 3

    Salida

    El flujo de trabajo completa su automatización y entrega el resultado al destino configurado.

Detalles de nodos (14)

CO

Code

code

#1
HT

HTML

html

#2
AI

AI Agent

n8n-nodes-langchain.agent

#3
OP

OpenAI Chat Model

n8n-nodes-langchain.lmChatOpenAi

#4
SI

Simple Memory

n8n-nodes-langchain.memoryBufferWindow

#5
CA

Call n8n Workflow Tool

n8n-nodes-langchain.toolWorkflow

#6

Cómo importar este flujo de trabajo

  1. 1Haz clic en el botón Descargar JSON a la derecha para guardar el archivo del flujo de trabajo.
  2. 2Abre tu instancia de n8n. Ve a Flujos de trabajo → Nuevo → Importar desde archivo.
  3. 3Selecciona el archivo generate-and-manage-short-links-with-gpt-41-and-data-storage descargado y haz clic en Importar.
  4. 4Configura las credenciales para cada nodo de servicio (claves API, OAuth, etc.).
  5. 5Haz clic en Probar flujo de trabajo para verificar que todo funcione, luego actívalo.

O pega directamente en n8n → Importar desde JSON:

{ "name": "Generate and Manage Short Links with GPT-4.1 and Data Storage", "nodes": [...], ...}

Integraciones

agentchattriggercodedatatableexecuteworkflowtriggerhtmllmchatopenaimemorybufferwindowrespondtowebhooksettoolworkflowwebhook

Obtener este flujo de trabajo

Descarga e importa con un solo clic

Descargar JSONVer en n8n.io
Nodos14
Complejidadmedium
Disparadortrigger
Vistas1
CategoríaMiscellaneous

Creado por

Nghia Nguyen

Nghia Nguyen

@nghiaaidev

Etiquetas

agentchattriggercodedatatableexecuteworkflowtriggerhtmllmchatopenaimemorybufferwindowrespondtowebhookset

¿Nuevo en n8n?

n8n es una herramienta de automatización de flujos de trabajo gratuita y de código abierto. Alójala tú mismo o usa la versión en la nube.

Obtener n8n gratis →

Related Miscellaneous Workflows