← Exit workflowPRINCESS LAGUARDIA / WORKFLOW LIBRARY

N8N AI AGENT

Facebook support AI agent

57 actual nodes · 52 connections · Facebook + Messenger

Problem

Facebook comments and Messenger inquiries needed timely, knowledge-based replies while allowing a human specialist to take control when needed.

Solution

Built an n8n support system with AI replies, conversation controls, human handoff, Slack responses, pause and resume handling, and deduplication.

Outcome

A managed support workflow with AI responses and clear human conversation control.

For

Facebook pages and support teams.

Graph
AI AgentagentAI AgentFilterfilterFilterSend a messageslackSend a messageSwitchswitchSwitchHumandataTableHumanConversation Con…dataTableConversation ControlAIdataTableAIHuman ReplyhttpRequestHuman ReplyAI ReplyhttpRequestAI ReplyStatus ReplyhttpRequestStatus ReplyStatus dataTableStatus Schedule TriggerscheduleTriggerSchedule TriggerGet row(s)dataTableGet row(s)Code in JavaScri…codeCode in JavaScriptUpsert row(s)dataTableUpsert row(s)Send a message1slackSend a message1Notify TeamwebhookNotify TeamNew MessagewebhookNew MessageRespond to New M…respondToWebhookRespond to New MessageisHuman?ifisHuman?isEmpty?ifisEmpty?isValid?ifisValid?Valid InforespondToWebhookValid InfoExtract Reply Da…setExtract Reply Data(Send to Faceboo…httpRequest(Send to Facebook)Reply to SlackhttpRequestReply to SlackUpsert row(s)1dataTableUpsert row(s)1Reply to Slack1httpRequestReply to Slack1Upsert row(s)2dataTableUpsert row(s)2Extract Done DatasetExtract Done DataExtract NotifysetExtract NotifyAuto Pause AIdataTableAuto Pause AISend the reply f…slackSend the reply from Previous MessagesReply to Message…webhookReply to Message from SlackDone Go Back to …webhookDone Go Back to AIalreadyProcessed?ifalreadyProcessed?Simple MemorymemoryBufferWindowSimple MemoryLimitlimitLimitGet a document1googleDocsGet a document1extract comment …setextract comment text + comment_idComment or Messe…switchComment or MessengerMessengerhttpRequestMessengerCommenthttpRequestCommentGet a documentgoogleDocsGet a documentAI Agent1agentAI Agent1Simple Memory1memoryBufferWindowSimple Memory1Limit1limitLimit1Quick DebugsetQuick DebugSet Message MidsetSet Message MidUpsert MiddataTableUpsert MidSet Processed MiddataTableSet Processed MidDeduplicate Lock…codeDeduplicate Lock(Comment)Deduplicate Lock…codeDeduplicate Lock(Messenger)Edit FieldssetEdit FieldsFilter1filterFilter1OpenAI Chat ModellmChatOpenAiOpenAI Chat ModelOpenAI Chat Mode…lmChatOpenAiOpenAI Chat Model1

57 nodes · 52 connections from the original workflow. Teal lines show the main flow; purple lines connect AI models, memory, and tools. Drag to pan; use + to inspect larger workflows.