Adding a configurable delay to AI Agent responses

Thanks, @sam

I found a temporary fix for now. Sharing it here in case someone else is trying the same.

Problem - I wanted the Discourse agents to reply with some pause, like 60 minutes or so and not instantly. Like how typical discourse conversations happen between humans.

It’s not to pretend that the bot is human. But to allow humans to interact along with the bot.

Challenge - The challenge was that as soon as a human would reply to the bot’s post, the bot would reply immediately. There was no setting to change that.

Solution - I set up an orchestrator bot using Claude… It runs a schedule (cron job). and checks the discourse category through API.

Insight - The Discourse Agent replies only when orchestrator bot tags it. The Allowed group for the agent has only the orchestrator bot and no human.

This way, there is no instant reply, only on a schedule. We can vary the frequency but we have some control.

This can also help with Agent API costs. With only a few replies a day, it can add meaningful value to a community.