Skip to content

Instantly share code, notes, and snippets.

@aloshyyyyyy
Last active April 10, 2026 11:37
Show Gist options
  • Select an option

  • Save aloshyyyyyy/88f963e270049866bc50bdb47b3a5db5 to your computer and use it in GitHub Desktop.

Select an option

Save aloshyyyyyy/88f963e270049866bc50bdb47b3a5db5 to your computer and use it in GitHub Desktop.
{
"name": "AI Business Agent (Redacted Demo)",
"nodes": [
{
"name": "Telegram Trigger",
"type": "trigger",
"note": "Incoming user messages"
},
{
"name": "Message Filter",
"type": "if",
"note": "Validates text messages only"
},
{
"name": "Load User Memory",
"type": "code",
"note": "Fetches conversation history (per user)"
},
{
"name": "Get Knowledge Base",
"type": "external_source",
"note": "Fetches business data (FAQs, services, etc.)"
},
{
"name": "AI Processing",
"type": "llm",
"model": "Gemini (configured)",
"note": "Combines memory + knowledge + prompt (redacted)"
},
{
"name": "Save User Memory",
"type": "code",
"note": "Stores conversation for continuity"
},
{
"name": "Send Response",
"type": "output",
"note": "Returns AI-generated reply to user"
}
],
"flow": [
"Telegram Trigger",
"Message Filter",
"Load User Memory",
"Get Knowledge Base",
"AI Processing",
"Save User Memory",
"Send Response"
],
"notes": [
"Full prompt engineering logic removed",
"Credentials and API configurations removed",
"Memory implementation simplified",
"Production version includes advanced optimization and scaling"
]
}
{
"memory_logic": "Stores last N messages per user with time-based cleanup",
"ai_input": "User message + conversation history + business knowledge",
"output": "Context-aware response"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment