Creating chatbot

Newbie here.

Trying to create a chatbox for a website. Want the chatbox to monitor a website, when someone opens the website, want the chatbox to appear. If chatbox is engaged, want the agent to scrap website to answer question. Answer should be shown in chatbox.

Have a couple of scenarios, trying to see if they make sense.

Custom Webhook -HTTP (make request) - Text parser - Open AI (create completion) - Webhook respone

Custom webhook - Open AI (create completion) - Webook response

Do either of these make sense? Would appreciate any comments, suggestions, help.

Thanks in advance