Apps in this workflow

How it works

  1. A user sends a message via the website chat widget
  2. Chatwoot forwards it to a webhook in Latenode
  3. Latenode checks if a thread_id exists (if not, it creates one)
  4. The message is sent to OpenAI Assistant, which generates a reply based on your instructions
  5. The response is sent back to the chat widget

đź§± Setup Guide

  1. Set Up the Chatwoot Widget

To enable messaging from your website, you need to install the Chatwoot widget. Chatwoot is a free, open-source chat tool.

  • Sign up at chatwoot.com
  • Go to Settings → Inboxes → Add Inbox → Website
illustration how to create chatwoot account and create Ai Bot widget
  • Follow the official setup guide
  • Embed the generated code on your site
  • Retrieve your api_access_token in Profile Settings (or from your admin)
Following guide how to make widget work

‍

  1. Create Your OpenAI Assistant
illustration of ChatGPT AI assistent right settings
  1. Set Up Your Database in Latenode
  • Go to Latenode Database
  • Create a storage and a collection inside it—e.g., users
  • In this example, the path is: database/chat_database/users

đź”§ Configuring the Scenario in Latenode

  • Copy the scenario from this link
  • Fill in the following:
    • ChatGPT Nodes:
      • Create an authorization using your OpenAI API Key
      • Select your assistant from the dropdown list
  • Database Nodes:
    • Enter the path to your collection (e.g., chat_database/users)
  • JavaScript Nodes:
    • Enter your Chatwoot API Token
    • Enter your account_id
  • All other variables are already preconfigured
  • Add your production webhook URL in Chatwoot settings:
Results of work
  • Click Deploy and your scenario will be fully operational

âś… Final Result

You now have a fully functional AI chatbot that:

  • Works on your website via a widget
  • Chats like a real human support agent
  • Maintains the context of the conversation
  • Uses your documentation as a knowledge base

🙋‍♂️ Need Help?

Check out our Latenode community forum or join the Latenode Discord — we’re always here to help.

Happy automating! 🚀

Categories

AI
IT & Development
Websites
Advertising & Marketing

FAQ

Can I use Latenode if I'm not familiar with programming?

Yes, Latenode is designed for users of all skill levels. It offers advanced features for those proficient in JavaScript and intuitive visual tools and AI assistance for beginners. Whether you're an experienced developer or a novice, Latenode provides a user-friendly experience tailored to your skill level.‍‍

Can Latenode integrate with third-party services and APIs?

Yes, Latenode supports integration with a wide range of third-party services and APIs. You can connect Latenode to various online platforms, databases, and software systems to automate data transfers, trigger actions, and streamline workflows. Latenode also provides tools and resources to facilitate the integration process.

Is there a free version of Latenode available?

Yes, Latenode offers a free version that lets you explore its capabilities. This version includes a subset of Latenode's features, enabling you to start with automation and experience its benefits. You can then decide whether to upgrade to a paid plan for additional features and resources.

What is Latenode?

Latenode is a visible and intuitive automation tool designed to empower customers to streamline their workflows through automation. It allows customers to create computerized strategies via connecting diverse internet offerings and gadgets, permitting them to automate obligations and decorate productivity successfully.

How does Latenode help maximize opportunities?

By integrating all your marketing tools in one place through data integration, Latenode helps you gain a comprehensive view of your operations. This enables you to identify potential opportunities more easily and make informed decisions based on accurate data.