Simplycode Chat — Free Chatbot for Your Website
Simplycode Chat is a free, open-source (MIT) chatbot for any website. Build it below in a few minutes without coding: add your business details and the questions your customers ask, check the live preview, and paste one block of code into your site. It answers instantly in English, Marathi or Hindi, shows your phone and WhatsApp when it does not know an answer, and can optionally use AI with your own key.
Build your chatbot
Fill in the form and watch your chatbot update on the right. Everything runs in your browser; your draft is saved only in this browser. An example shop is filled in to start — replace it with your own business or press Start empty.
1Business details
2Contact details (shown when the bot has no answer)
3Question buttons
4Topics: questions & answers
One topic per subject. Keywords are the most important part: add every word people may type — short forms, Marathi/Hindi and romanized words (kharch, kiti, वेळ). Small spelling mistakes are matched automatically.
5Get your code
- Copy this block.
- Paste it just before
</body>on your website (WordPress: in the footer box of a header & footer code plugin). - Save and refresh your site — the chat button appears.
- Download
chat-data.jsonand upload it to your website's main folder. - Add the script tag before
</body>. Later you only edit the JSON file to change answers.
Your answers stay on your website. Nothing you type in this builder is sent to Simplycode.
Features
No coding needed
Build the chatbot with a form and a live preview, then paste one block of code. No account, no dashboard, no monthly fee.
Reliable answers
Keyword topics give the same correct answer every time. Longer phrases count more, and small spelling mistakes are understood.
English, मराठी, हिंदी
Visitors can ask in English, Marathi, Hindi or romanized text like kiti kharch yeto. The chat window is available in all three languages.
Feels like a real assistant
Typing dots, answers that appear step by step, lists and links, and follow-up question buttons after every reply.
Never a dead end
When the bot has no answer it shows your phone, email and a WhatsApp button, so every question can become a lead.
Optional AI
Connect Gemini, OpenAI or Claude with your own key for questions your topics don't cover. The AI answers only from your business information.
Safe & light
One small file with no dependencies, isolated with Shadow DOM so it never breaks your design. Answers are cleaned of unsafe HTML.
Floating or embedded
Use the floating chat button on every page, or show the chat inside a section of a page with data-container.
How to add the chatbot to your website
1Plain HTML or PHP website
Paste the code from the builder just before </body> in your footer file (for PHP sites usually footer.php or a shared layout). Or keep your data in a file:
<script src="https://www.simplycode.in/simplycode-chat/cdn/simplycode-chat.min.js"
data-file="/chat-data.json"
data-title="My Business"
data-color="#1e3a8a"></script>A page opened by double-clicking (file://) cannot load a JSON file; test with a local server such as VS Code Live Server, or use the one-block code from the builder.
2WordPress
- Build your chatbot above and copy the Easy: one block code.
- In WordPress go to Plugins → Add New and install a header & footer code plugin (for example WPCode).
- Open the plugin's Header & Footer page and paste the code into the Footer box. Save.
- Open your website — the chat button appears on every page.
3Angular, React or any JavaScript app
Load the script once (for example in index.html) and start the chat from your code:
<script src="https://www.simplycode.in/simplycode-chat/cdn/simplycode-chat.min.js"></script>
<script>
SimplycodeChat.init({
title: "My Business",
dataUrl: "/assets/chat-data.json",
whatsapp: "919876543210"
});
</script>4The data format
The builder creates this for you. Each topic needs keywords and an answer:
{
"welcome": "Hello! 👋 How can I help you?",
"suggestions": ["Shop timing?", "Do you deliver?"],
"contact": { "phone": "+91 98765 43210", "whatsapp": "919876543210" },
"topics": [
{
"title": "Shop timing?",
"keywords": ["timing", "open", "close", "hours", "sunday", "vel", "वेळ"],
"answer": "We are open **every day, 8 AM – 10 PM**."
}
]
}How the chatbot picks an answer: the topic with the most matching keywords answers (longer phrases count more). If no keyword matches, a very similar question can still answer. "Hi", "thanks" and "bye" get friendly built-in replies. If nothing fits, AI answers (when set up), otherwise your contact details and WhatsApp button are shown.
Tip: look at the real questions customers send you on WhatsApp and phone, and add the words they use as keywords.
5Common options
| Attribute | What it does |
|---|---|
data-file / data-file-id | Your data: a JSON file URL, or the id of an inline <script type="application/json"> |
data-title, data-subtitle | Name and status line in the chat header |
data-color | Brand colour, e.g. #be123c |
data-lang | Chat window language: en, mr, hi |
data-position | right (default) or left |
data-phone, data-email, data-whatsapp | Contact details (can also be in the data file) |
data-note | Small line under the input box |
data-container | Show the chat inside a page element (e.g. #help-chat) instead of a floating button |
data-open-on-load | true opens the chat automatically |
data-ai-endpoint | Your AI endpoint, e.g. /chatbot/chat.php (see below) |
data-branding | false hides "Powered by Simplycode Chat" |
6Optional: AI answers with your own key
Questions your topics answer stay instant and free. Only the rest go to AI. You need PHP hosting and an API key (Google Gemini offers a free tier; OpenAI and Claude also work).
- Download the package and upload its
serverfolder (chat.php,config.sample.php,.htaccess) to your hosting, e.g. as/chatbot/, next to yourchat-data.json. - Copy
config.sample.phptoconfig.php, paste your API key, setdata_fileto yourchat-data.jsonand add your domain toallowed_origins. - Add
data-ai-endpoint="/chatbot/chat.php"to the script tag.
Your API key stays on your server and is never sent to the browser. A per-visitor hourly limit protects your bill, and if the AI is unavailable the chat falls back to your topics and contact details.
मराठीत थोडक्यात
Simplycode Chat हा तुमच्या वेबसाईटसाठी पूर्णपणे मोफत चॅटबॉट आहे. वरच्या builder मध्ये तुमच्या व्यवसायाचं नाव, फोन, WhatsApp आणि ग्राहक नेहमी विचारतात ते प्रश्न व उत्तरं भरा. उजवीकडे लगेच preview दिसेल. तयार झालेला code copy करून वेबसाईटच्या footer मध्ये paste करा — झालं! ग्राहक इंग्रजी, मराठी किंवा हिंदीत प्रश्न विचारू शकतात. उत्तर नसेल तर चॅटबॉट तुमचा फोन नंबर आणि WhatsApp button दाखवतो.
Simplycode Chat: frequently asked questions
What is Simplycode Chat?
Simplycode Chat is a free, open-source (MIT) chatbot for websites, made by Simplycode Technology. You write your questions, keywords and answers once, add one script tag, and visitors get instant answers in a chat window, with your phone, email and WhatsApp shown when the bot does not know an answer.
Is Simplycode Chat really free?
Yes. The chatbot and the builder on this page are free for personal, client and commercial websites under the MIT licence. There is no account, no message limit and no monthly fee. The optional AI mode uses your own AI provider key, so any AI cost is between you and that provider.
Do I need to know coding?
No. Use the builder on this page: fill in your business details and questions, check the live preview, then copy one block of code and paste it into your website footer (on WordPress, with a header-and-footer code plugin). Developers can also keep the data in a separate chat-data.json file.
Does it work on WordPress, PHP and plain HTML websites?
Yes. It is a single JavaScript file with no dependencies, so it works on WordPress, PHP, plain HTML, Shopify, Wix (custom code), Angular, React and any other site where you can add a script tag.
Is my chatbot data sent to Simplycode?
No. Your questions and answers stay on your own website (in the page or in your chat-data.json file). The builder runs entirely in your browser and only saves a draft in your own browser. Visitor messages are answered in the visitor's browser and are not sent to Simplycode.
Can the chatbot answer in Marathi or Hindi?
Yes. Add Marathi, Hindi and romanized words (for example kharch, kiti, वेळ) to your keywords and write answers in any language. The chat window itself is available in English, Marathi and Hindi with data-lang="mr" or "hi".
Can it use AI like ChatGPT, Gemini or Claude?
Yes, optionally. Upload the included chat.php to your PHP hosting and add your own API key (for example a Google Gemini key). Questions your topics already cover are answered instantly; only the rest go to the AI, which is instructed to answer only from your business information. Your key stays on your server.
How is it different from a normal FAQ section?
Visitors ask in their own words, with typos or in Marathi/Hindi, and get one focused answer with links, instead of scrolling a long FAQ page. Follow-up question buttons and a WhatsApp button keep the conversation going and bring you leads.
Can Simplycode set it up for my business?
Yes. We can write your chatbot content, connect AI, add lead capture and style it to match your brand. Contact us for a free quote.
Links & related services
- AI chatbot developmentNeed a custom AI chatbot with lead capture and integrations? We build it.
- Kalpna Editor (free)Our free rich text editor for Angular and HTML websites.
- Website design & developmentA fast, SEO-ready website with the chatbot built in.
- SEO, AEO & GEO servicesGet found on Google and AI search.
Want us to set up the chatbot for you?
We write the questions and answers, connect AI and WhatsApp, and match it to your brand. Free consultation.