Skip to main content

FS Automation Architecture

System Overview​

Python outreach toolkit with optional FastAPI/app.py entry, Playwright browser automation, HTML frontend assets, and n8n workflow integration.

Architecture Diagram​

graph TB
ConfigEnv["config.py / .env<br/>cookies + settings"]
FrontendUi["frontend.html / LeadGeneration-main"]
N8nWorkflow["n8n_workflow.json"]
AutomationApp["app.py + scripts<br/>search / connect / message"]
PlaywrightBrowser["Playwright browser"]
LinkedInSite["LinkedIn"]

ConfigEnv -->|"loads credentials + settings"| AutomationApp
FrontendUi -->|"UI triggers actions"| AutomationApp
N8nWorkflow -->|"orchestrates automation"| AutomationApp
AutomationApp -->|"drives browser"| PlaywrightBrowser
PlaywrightBrowser -->|"login / search / outreach"| LinkedInSite

How to read this diagram​

Arrows mean flow / dependency / "talks to", not button clicks. Each arrow label says what happens on that step.

Core Components​

ModuleRole
search_linkedin.pyProspect discovery
send_connections.pyConnection requests
send_message.py / auto_reply.pyMessaging
check_replies.py / check_status.pyStatus monitoring
login_linkedin.py / get_linkedin_cookie.pySession helpers
fetch_ttb_data.pyAdditional data fetch utility

Technology Stack​

LayerTechnology
LanguagePython
Browser automationPlaywright
PackagingDocker
Orchestrationn8n

Next Steps​