Owner. I already have a small website. Do I need to move it before I add a chat box?
Consultant. You can start on the hosting you have if an external AI service writes the response. Your site needs to forward a short request securely and wait for the result. Try a question while other visitors are browsing.
Where does “Are you open on Saturday?” go?
Consultant. The browser sends it to your website. Your PHP code checks the length and rate of requests, then sends the question and a short extract of your opening hours over HTTPS to the provider’s API, the interface between the two programs. The answer comes back through PHP to the chat. If opening hours already live in a structured field, the site can handle that question itself and save a paid call.
Owner. What will the provider see?
Consultant. The question and whatever context you send. Including the conversation history shares that history too. Explain the transfer to the visitor and check the provider’s retention terms. An order number, email or phone number adds nothing to an opening-hours question. Keep the API key in server-side protected settings or outside the public directory. HTML and browser JavaScript are visible to visitors. API key safety guidance.
Three checks with your hosting provider
- Outbound HTTPS. Can PHP on the actual hosting account reach the chosen API endpoint?
- Execution time. How long can the web request remain open? Set a shorter chat timeout so the visitor gets a useful response before the server closes the connection.
- Concurrency. How many PHP workers can the plan use? With several chats waiting, check that the ordinary page and contact form still respond promptly.
Owner. What if the answer comes too late?
Consultant. Offer a plain “Leave us a message” form, keep the question already typed and ask for a contact address only if the visitor wants a reply. Show a receipt after the message has been saved.
Web hosting serves the site, the form and the short PHP call. The API provider accounts for model usage separately. A continuously running program, a long-lived connection or a dedicated queue worker is a concrete reason to evaluate a VPS. If the three checks pass, you can keep the current plan.



