Hi all! My first post here so If I’m missing something, let me know ![]()
I’m struggling a bit with my personal assistant setup. What’s the idea:
A personal assistant that has access to multiple sub agents for specific tasks. The main agent is my personal assistant, says good morning and it talks to me and gaters info about the task to do and delegates. Sounds simple right?
Most of the videos on youtube are not actually usable in prod environments, just funny demos.
Main problem:
- The whole workflow, make it strict, back and forth feedback, approval. Universal.
Wishes:
- Human in the loop
- Strict step by step workflow when handling choices or approvals or feedback
- Multiple main agent can use the sub agents (PA can search for contact, but marketing agent can also search for contacts in same workflow)
- Telegram connected to main agent (chat input)
Tools:
- Telegram (for talking)
- Airtable (for contacts)
- OpenAi (for LLM, but open for others)
- Redis (long ish memory)
What didn’t work out or gave me headaches:
- using sub agents as tools (agent swarn) doesn’t work because you can’t built a workflow around the sub agent tool or create multi step workflows, only 1 tool with more sub tools.
- So, for above, human in the loop is not possible. and not scalable to other main agents. Except when you add all the main agents in 1 workflow.
- defining workflows in the prompt of the main agent kept going wrong, the agent was unreliable and sometimes skips steps or said it had a contact while it didn’t. Even when I made the step explicitly mandatory.
- talking back and forth towards main agent about choices, what’s the best way to do this?
- via memory? pushing everything back to memory and let main and sub agent use same memory?
- just push choice back to telegram only?
The first use case I couldn’t get working:
- Me via telegram: I’m looking for Pieter
- Main agent: search for Pieter
- Sub agent: I found 2:
- Pieter 1 - [email protected]
- Pieter 2 - [email protected]
- Main agent: Great I’ll pick 1
- Main to me: what would you like to do with Pieter 1 - [email protected]? Send an email?
- Me via telegram towards main agent: Yes, send him a message that I’m 20 minutes later today, thanks!
From here, but maybe out of scope for this one…
- Bill uses this info to send the request towards email_agent: Send email to Pieter 1 - [email protected] with the text “Yes, send him a message that I’m 20 minutes later today, thanks!”
- email_agent will rewrite the email and create a subject based on the message.
- using a message for approval, is this the email you would like to send now:
To: [email protected]
Subject: I’m late
Message: Hi Pieter 1, I just want to let you know that I’m a bit later today, apologies. Kind regards Hans.
[signature] - approval via chat? or do we need telegram human in the loop here? which are both fine. but the prompt is never strict enough, so I assume human in the loop via Telegram.
I hope this is a bit clear since it’s a long message but the best way is to provide some context, right?
Edit:
-
n8n version: 1.119.1
-
Database (default: SQLite): don’t know
-
n8n EXECUTIONS_PROCESS setting (default: own, main): no idea
-
Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
-
Operating system: windows
