Hello,
I am trying to build a workflow that would allow a user to initiate a chat from my website, and if it is between business hours(9-5) I’d like to answer it myself, if it’s after 9-5 I’d like the AI Agent to deal with it. I got that logic down fine and the AI agent down, I am just wondering what the best way to interact as a human with an incoming chat? Thank you for any help you can offer.
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!
Currently, we don’t have a ready-made solution for integrating a human into the chat loop. You’ll need to manage this process manually for now.
One possible approach is to redirect incoming messages during business hours to a messaging platform like Telegram. You can keep track of chat sessions and handle responses through a Telegram trigger, sending them to the appropriate user. Hope that’ll get you started
Thank you for the help. Would there be a way to send our response in telegram back to the webchat? Can you send a post request back to the chat url with the sessionid and response? Thanks again for any help or tips you can offer.
I just checked this internally and it looks like this isn’t possible at the moment sadly But this would be a good feature request to add in Feature Requests - n8n Community