Hello,
I need help implementing the “typing action” in Telegram. The current issue is that the typing indicator only lasts for 5 seconds, while my AI agent takes 10–60 seconds to respond. I want the typing indicator to persist throughout the processing time so that users see it continuously until the response is ready.
Is there a way to achieve this?
Here’s what I’ve tried so far:
- I connected a trigger from Telegram to both the AI agent and a “loop over items” node.
- The loop node is also connected to Airtable to check the status in a table.
- The idea was to have Telegram trigger both the AI agent and the loop node simultaneously. Once the AI agent finishes processing, it updates the Airtable status to “true,” which would then stop the loop.
However, this approach didn’t work as expected:
- When Telegram is triggered, the AI agent starts processing first.
- Once the AI agent completes its work and updates the status, only then does the “loop over items” node start executing.
- As a result, the typing action doesn’t persist correctly during the AI agent’s processing time.
How can I ensure that the typing action in Telegram persists for the entire duration of the AI agent’s processing?