I have a tool that asks my rest api to create a new job, that job normally takes about 2 minutes. I have a tool call to query the status, but it is anoying. I’d need for when a new job is started, it will trigger the AI to print a message telling the user it is done.
Chat Trigger replies are synchronous, so it won’t send a message later once your scrape finishes. If you need real ‘job done’ notifications, move the conversation to a channel that supports outbound messages, like Telegram or Slack. When the job starts, store the user/chat ID, and once your scraper is done, just send a proactive message back to that chat.
If you want to stick with Chat Trigger, the workaround is to acknowledge the job right away and then keep checking the status in follow-up messages, but it won’t automatically message the user by itself.