AI Agents

AI Agent with Custom HTTP Request Handling

20 nodes 295 142 Automatic trigger
Download

Workflow Description

An intelligent automation that combines an AI-powered agent built with OpenAI and custom HTTP requests, enabling users to interact via manual chat to execute complex tasks and distribute results across platforms like X.

How it works

  1. 1.Receive queries through manual chat trigger interface
  2. 2.Process requests using an AI agent powered by OpenAI
  3. 3.Send custom HTTP requests to external services
  4. 4.Evaluate responses and execute conditional actions
  5. 5.Publish outputs to X or other distribution channels

Use cases

  • Build a smart assistant that handles complex API interactions
  • Automate tasks requiring human interaction combined with intelligent processing
  • Automatically distribute results across social media platforms

Requirements

  • Valid OpenAI API key with sufficient credits
  • Active X (Twitter) account for posting (optional)
  • Understanding of HTTP requests and API integration

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Manual Chat Trigger OpenAI Twitter/X AI Agent Tool

Details

Trigger Automatic trigger
Nodes 20
Apps 5
Views 295
Downloads 142

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (20)

/

On new manual Chat Message

Manual Chat Trigger

#1

OpenAI Chat Model

OpenAI

#2

HTTP Request

HTTP Request

#3

Exctract HTML Body

Set

#4

Is error?

If

#5

Stringify error message

Set

#6

Execute Workflow Trigger

Execute Workflow Trigger

#7

Remove extra tags

Set

#8

Simplify output

Set

#9

Simplify?

If

#10

QUERY_PARAMS

Set

#11

CONFIG

Set

#12

Sticky Note

Sticky Note

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Sticky Note3

Sticky Note

#16

ReAct AI Agent

Agent

#17

Convert to Markdown

Markdown

#18

Send Page Content

Set

#19

HTTP_Request_Tool

Tool Workflow

#20