r/ClaudeCode • u/Syllabub-Fluid • 6d ago
Tips & Workflows Building a admin assistant bot, tips and guidance needed!
I have no technical software engineering background so wanted to get some tips and help with building a Teams bot that eventually does most of a health clinic’s admin role: preps her day, drafts and later sends replies to families, chases forms and invoices, books appointments, and answers the team's questions.
I've been building it with Claude Code for a couple of weeks: three sessions (build, test, coordinate) plus about 30 scheduled tasks, talking through markdown notes and a growing pile of rules files, deploying to an Azure-hosted Teams bot. It's failing in predictable ways. State gets lost between context clears, rules pile up faster than anything reads them, tests pass while the real messages are still wrong, and I'm the one catching most of the problems.
For people who've done this for real, would really appreciate any guidance or help. Some questions Claude helped come up with:
• What stack would you use starting again? Claude Code, or n8n / Power Automate / Copilot Studio plus an LLM?
• Are agent swarms worth it at this size, or is one agent with good tests better?
• What keeps it under control: issue tracker, CI, evals, logging?
• What subscription did you actually need, and what does it cost monthly?
•
u/AutoModerator 6d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Saver411 6d ago
Chasing invoices and emailing patient families are the two places where an automated bot will blow up a clinic's reputation in one afternoon. Thirty scheduled tasks running on a codebase you didn't write yourself is asking for silent failures.
Keep a human in the loop for anything outbound. Have the bot prep the drafts, check the invoice status, and drop a card into Teams, but make a real person click the send button.
What happens right now if one of those tasks hallucinates a billing number?
1
u/Ge0cities 6d ago
You are trying to rebuild Claude? Just use Claude.
1
u/AwarenessStatus1904 6d ago
i'd shrink it before changing stack. one agent, one job (drafting replies), a human approves every send, and state lives in a database instead of markdown notes. also check your privacy obligations early, since this is health data about families. add the next job only once the first one is boring.
1
u/615PowerhouseService 6d ago
Your problem isn't the stack, it's that 30 scheduled tasks with no single source of truth will lose state and pile up rules in any tool you pick — we hit the same wall running a cleaning business on AI, and it only settled when everything lived in one master file the system reads first, every time. Pick one home for the rules and the day's state, make every task read it and write back to it, and kill any rule that exists in two places. Then prove it on real messages with one narrow job, like morning prep only, before you let it send anything — tests passing while real messages fail means the real workflow was never the thing being tested.
1
u/dan-423 6d ago
Claude/AI can do the coding parts, but what people don't appreciate is that there is still a need for at least a basic understanding of software development AND subject matter expertise for what's being built. It takes significant experience to know what pieces need made and how to arrange them. AI isn't "there" yet in terms of those qualities, especially in sensitive industries.
Software developers don't necessarily know the ins and outs of various businesses. Random businesses don't know the intricacies making software. The software developer is sort of a translator that takes the business' needs and turns that into software. The business is a translator that is able to tell the software people what the software needs to do to be effective.
I say all that because I think you may be missing both of those elements. It doesn't make your task impossible, but it will be necessary to dive into both sides of it. Whether that's worth it isn't up to me to say, but I think you're anticipating days/weeks when the reality is months/years of learning and evenings or weekend sessions.
This would be true for a general business, but there are extra issues around privacy and security when it comes to medical applications. If you're in the United States or anywhere with strong patient confidentiality or consumer protection laws then there's an additional layer. You can't, or shouldn't, just charge ahead when billing or private medical info is involved.
1
u/Late-Coast6973 6d ago
Before it sends anything to families, check where the clinic's patient data is allowed to go. Messages running through a personal Claude subscription usually fall outside that (in the US it needs a BAA, which Pro and Max plans don't come with).
1
u/Repulsive_Kitchen96 6d ago
Try restarting the bot after it drafts a reply but before anyone approves it. With a fake inbox, feed it the same message again and check that Teams still shows one draft waiting for approval. That tests the state you’re losing on restart and catches the duplicate-send case early.
1
u/SirRobinBlibs 6d ago
The "tests pass while real messages go wrong" part is the one I'd fix first. Take 20 to 30 real admin messages with patient details stripped, write down the right outcome for each, and keep them as a replay set you run after every change. When a new message goes wrong, it joins the set, so the same mistake can't come back quietly.
On rules piling up: anything checkable (a date format, never booking outside opening hours, always copying the front desk) works better as code the bot runs before sending than as another line in a rules file, because a long rules file gets followed less reliably. And state that gets lost between context clears should live in a small database or a file the bot reads at start, not in the conversation.
1
u/ChanceExcuse8669 5d ago
I run a bot that posts on my behalf, so I hit the same worry. What made me comfortable: nothing goes out until I approve it. The bot sends me a batch on Telegram, one button per item. Tap to drop one, then a single "Post" button sends the rest, spaced 5–10 minutes apart, capped at 10 a day. If I don't answer within 12 hours, the batch expires and nothing is sent. Start with approval on everything, and loosen it only for the message types that never needed a correction.
1
u/onitsoga 5d ago
One agent with tight tests beats a swarm at this size, honestly. Your state getting lost between context clears is a file problem, not a model one: put the queue in one place the agent reads first every session.
0
u/Glittering-Dig-4963 6d ago
The state loss and the rule pileup are really the same problem. Move everything that has to survive a context clear out of the chat and into files the bot reads at the start of every session: a short CLAUDE.md with only the rules that keep getting broken, a decisions file, and a running task log. When the rules list gets long, prune it instead of adding to it, because 80 rules get followed worse than 15.
For tests passing while real messages still go wrong, save the real messages that broke it (scrubbed of patient details) as a test set and rerun that set after every change. Tests written by the same session that wrote the code tend to pass by construction.
I'd skip agent swarms at this size. Three sessions plus 30 scheduled tasks is already a lot of moving parts, and since it touches clinic data, simple and well logged beats clever. Log every action the bot takes along with what triggered it, so you can trace a bad reply back to its cause.
0
u/karlitooo 6d ago
Don't use Teams man. It's not worth it, you have a whole life ahead of you. Azure gave me a frickin rash.
With the benefit of hindsight I would trial 5 or so off the shelf products, understand the patterns they use. Something like rowboat or Macro. Then just use that until a market leader emerges. Even work your way a few open source options listed here: https://github.com/aloth/awesome-ai-agents
If you insist on building it yourself, you're gonna have to make ALL the mistakes. There are so many ways to build, so many trade-offs. I am over a year in, I have stuff that works but its also uh.. pretty jank.
Two tips. First, focus on the data. Build on top of a data platform that the model can update/query, not just flinging stuff around via mcp. Nocodb is open source and decent. Second find what consent requirements exist in your country for sending patient data offshore (unless you are US based)