Add an FAQ bot and appointment booking to any website with 3 API calls
Most small-business sites need the same two things: answer the five questions everyone asks ("what are your hours?", "how much is…?") and let people book. Building a booking backend for every client is a waste of a week. Here's how to do both with three HTTP calls, using CallChatSyn's API (free for the first 1,000 businesses). 0. Try it right now (no account) There's a public demo key,…
Adding an FAQ bot and appointment booking to any website can be accomplished in just three API calls, using CallChatSyn's API which is free for the first 1,000 businesses. To get started, you need to make a few HTTP calls.
First, you can try it out immediately using a public demo key, ccs_demo_public, which answers as a demo business. For example, you can ask "Where are you located?" and the bot will respond with "We're at our main location, details on our website."
Once you're ready to implement your own FAQs and real bookings, you'll need to create an account at callchatsyn.com and confirm your email. Then, add some FAQs and your opening hours under the Dashboard. Set your time zone in Dashboard → Booking Page and create an API key under Developers → Claim founder API access. Keep this key secret and only share it with your server, as it should never be included in browser code.
The bot can handle various types of queries, such as booking requests, order status questions, and "talk to a person" requests in English and Chinese. When the bot receives a question, it sends an HTTP request to the /answer endpoint, passing the message and receiving a reply with the intent, language, a match flag, and a reply.
To list the open times and book an appointment, you can make HTTP requests to the /slots and /bookings endpoints, respectively. The /slots endpoint provides the available times, services, and locations based on the business's offerings. In contrast, the /bookings endpoint allows you to book an appointment by providing the desired time, service, name, and email.
Lastly, to implement a tiny website widget using a server route and 30 lines of JavaScript, you can set up an Express server that forwards user questions to the CallChatSyn API. The widget consists of a simple form with an input field for the user's question and a send button. The JavaScript code listens for form submission, sends a POST request to the server, and displays the bot's response in the designated log area on the page.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.