Step-by-step
🤖 Cohere
Cohere
📘 Step-by-step guide 📘 Cohere · Coherebeginner 💼 Business

Build a simple chatbot for your small‑business site with Cohere

A step-by-step guide to setting up an AI chatbot on your website using Cohere's visual builder – no coding needed!

By the end of this guide, you’ll have a live chatbot on your website ready to answer your most common customer questions, all without needing to write any code. This is perfect for small business owners, service providers, or anyone wanting a friendly AI assistant to help their customers 24/7.

✅ Before you start
  • Cohere Account: A free or paid Cohere account. Signing up usually takes less than a minute. The steps in this guide work with a free plan, though paid plans offer more advanced features or higher usage limits.
  • Website Access: You'll need access to your website's editor, specifically where you can add custom HTML (HyperText Markup Language – the code that structures web pages). This might be in your website's Content Management System (CMS) like WordPress, Wix, Squarespace, or Shopify, allowing you to edit footer or page code.
  • Common Questions: A list of the top 3-5 questions your customers frequently ask (e.g., "What are your opening hours?", "Do you offer international shipping?").
  • Time: Allow approximately 20-30 minutes to complete this guide.
1

Create your Cohere account

Start by visiting cohere.com in your web browser. You'll see the Cohere homepage, likely with a prominent "Sign up" or "Get started" button. Click this button to begin the registration process. Follow the on-screen prompts to enter your name, email address, and choose a strong password. After submitting, you'll usually receive a verification email – open it and click the link inside to confirm your new account.

If it looks different: If you can't find a "Sign up" button, look for "Log in" and then a smaller link to "Register" or "Create an account."

💬 ExampleUse `[email protected]` and a secure password.

You'll know it worked when you are redirected to a success page or automatically logged into the Cohere platform.

2

Start a new chatbot project

Once logged into Cohere, you'll likely see a main Dashboard or Projects area, which acts as your central workspace. Look for a large button or link that says "New Project" or "Create Chatbot." Click this to start building your AI assistant. You'll then be prompted to select the type of project you want to create; choose "Chatbot" or a similar option. Next, you'll need to give your chatbot a clear name, like "ShopHelper" or "SupportBot." This name helps you identify your project later and won't be visible to your website visitors.

If it looks different: The "New Project" button might be in a sidebar menu, at the top of the screen, or represented by a "+" icon. Just look for a clear option to start something new.

💬 ExampleProject name: `MyOnlineStoreAssistant`.

You'll know it worked when you see a new project workspace open, ready for you to add content to your chatbot.

3

Build conversations with the visual editor

Cohere provides a visual, drag-and-drop editor where you can easily design how your chatbot responds. Imagine a whiteboard where you arrange conversation "blocks." First, find the "Add Block" or "+" button to add your first "Question" block. Type one of your common customer queries into this block, such as "What are your opening hours?". Then, drag an "Answer" block directly below it and type the correct response, for instance: "We're open Monday-Friday 9 am-5 pm, and Saturday 10 am-3 pm." Repeat this process for each of your top questions, building a simple conversation flow for your bot. This visual approach lets you "teach" the bot without writing complex code.

If it looks different: The layout of the blocks might vary slightly, but the core idea of connecting questions to answers remains the same. Look for clear labels like "Question," "Response," or "Message."

💬 Example- Question block: *“Do you ship internationally?”*
  • Answer block: “Yes, we ship to Australia, New Zealand, and the UK. Shipping costs are calculated at checkout.” You'll know it worked when you see your question and answer blocks visually linked together on the canvas, forming a basic conversation path.
4

Generate your web widget code

A widget is like a small, self-contained mini-app that you can embed directly onto your website. Once you've set up a few question-and-answer pairs, you'll need to turn your chatbot into this embeddable widget. Look for a "Deploy," "Publish," or "Embed" tab or button within your Cohere project interface. This section is usually dedicated to getting your chatbot onto other platforms. Here, you'll find options to create a web widget. You might even be able to customise its appearance (like its size, colour, or where it sits on your screen). After you've made your choices, Cohere will automatically generate a snippet of code, typically a combination of HTML and JavaScript. This code is the essential link that allows your website to communicate with your new AI assistant.

If it looks different: The exact location of the "Deploy" or "Embed" option might be in a sidebar or a top-level menu item. Don't worry if the customisation options look slightly different; the key is to find the generated code.

💬 ExampleThe generated code will look similar to this (don't worry about understanding it all): ```html
``` You'll know it worked when **you see a box containing lines of code that you can copy to your clipboard.**
5

Add the widget to your website

Now it's time to put your chatbot on your live website. Log into your website's Content Management System (CMS) like WordPress, Wix, or Squarespace. Navigate to the area where you can edit the HTML code of your pages or the site's footer. This is often labelled "Theme Editor," "Custom Code," or "Embed Code." Paste the code snippet you copied from Cohere (in Step 4) into this designated HTML area. A common and effective place is just before the closing </body> tag in your site's footer, as this ensures the chat icon appears on every page. After pasting, be sure to save and publish your changes to make them live.

If it looks different: In some CMS platforms like Wix or Squarespace, you might look for an "Embed Block" or "Custom Code" section within your page editor. On WordPress, you might go to Appearance → Theme File Editor → footer.php (or a similar template file) and paste the code there.

💬 ExampleIf using WordPress, after navigating to **Appearance → Theme File Editor**, find `footer.php` in the file list on the right. Paste the copied code just above the line that says `` and click "Update File" or "Save Changes."

You'll know it worked when you visit your live website in a browser and see a small chat bubble or icon appear, usually in the bottom-right corner.

⚠️ Common mistakes
  • Forgetting to save or publish changes: Your chatbot won't appear on your website until you've saved and published the code changes within your CMS. Always double-check by visiting your live site.
  • Leaving answer blocks blank: If your chatbot encounters a question it doesn't have a specific answer for, and the answer block is empty, it might respond with a generic "I'm not sure." Make sure every question has a clear, helpful reply.
  • Pasting the code in the wrong place: If the chat icon doesn't appear, you might have placed the code in an area that isn't rendered or is hidden. Try moving the code snippet to the very end of your website's main HTML body, just before the closing </body> tag, which is a common and reliable spot.
🚀 Try it now

Open your Cohere dashboard, click New Project, and create a single question-answer pair for your new chatbot (for example, "What is your return policy?" → "Our return policy allows returns within 30 days with a receipt."). In the next two minutes, you'll have the foundational knowledge and the start of a live chatbot, ready to be expanded and embedded.

✦ Original step-by-step guide by AI World Co.'s AI editorial team. Written in plain language, reviewed for accuracy.

← Back to all stories