이 워크플로우의 앱

작동 방식

Create your first line support AI assistant by yourself with no code using latenode.com, chatwoot and OpenAI assistant, and read this article to learn how to do it!

Scenario overview

Illustration of Scenario of how to create AI chatbot for site

That is the final version of this chatbox AI workflow, let me explain what is going on here.
This scenario gets the user questions from the Support AI chatbox on our website, sends it to the chatGPT assistant armed with product documentation and then sends the response back to the website chatbot. Now let’s have a closer look to break down each step of the process.

Preparations

There are few things you’ll need to create an AI chatbot.

Website AI chatbot interface

Obviously, to make this chatbot for website work, you’ll have to create a pop up tab on your site where users can ask the questions. In this case, we use Chatwoot to create it, ‘cause it is open source and we can use it for free. So, how to set it up?

  1. Sign into your chatwoot account
  2. Create your AI chatbot widget. To do that, go to the settings tab, then click ‘inboxes’. Then, in the upper right corner you’ll see the ‘add inbox’ button. Click on it and then choose ‘Website’.
illustration how to create chatwoot account and create Ai Bot widget
  1. Follow this Chatwoot guide to make the widget work.
  2. Add the widget to your website.
  3. Get your Chatwoot access token. Go to profile settings and scroll down the page to see it.
Following guide how to make widget work

Ok, now your Support AI chat bot has a widget on your website, let’s go on!

ChatGPT Assistant

방법은 간단합니다. OpenAI 계정에 로그인한 다음, 다음 항목으로 이동합니다. 어시스턴트로 이동하여 오른쪽 상단에 있는 '만들기' 버튼을 클릭합니다. 어시스턴트의 설정 패널이 표시됩니다.

illustration of ChatGPT AI assistent right settings

여기에서 해야 합니다:

  1. 어시스턴트 이름 지정하기
  2. 어떤 방식으로 답변할 것인지에 대한 지침과 배경 정보를 제공하세요. 첨부 파일을 사용하도록 요청하는 것이 좋습니다. 그렇지 않으면 잊어버릴 수 있기 때문입니다.
  3. 모델 선택
  4. 사용 가능한 도구를 선택하고 어시스턴트가 사용할 수 있는 파일을 추가합니다. 파일 추가를 가능하게 하려면 검색 기능을 켜는 것을 잊지 마세요.

Copy the assistant’s ID (you see it under the Name column), then go to API keys, create one and save it.

Now it’s time to go to latenode.com and start making our website support chat bot scenario!

Latenode scenario

Now it’s time to set up a Latenode AI chat bot scenario, and now you’ll see what you have to do!

Create a Latenode account and copy the AI chatbot template.

After you’ve created a Latenode account here and logged into it, go to the ‘Shared templates’.

Illustration how clone Ready-to-use scenario on Latende

Then go to the AI examples folder. The AI conversation generator template you’re searching for is called ‘GPT Customer Support Bot. Chat Widget + Assistants API’. Click on it, and after that, push the ‘Clone’ button in the lower left corner to copy this website chatbot workflow. It would be automatically added to your list of scenarios.

Create Latenode variables

Your web chatbot scenario needs some variables to function. You can create them in the same name tab. So, the variables you have to create are:

  • bot_chatwoot_api_key. Put your Chatwoot access token here.
  • bot_gpt_api_key. Here you need to put your OpenAI API key.
  • bot_gpt_assistant_id. Insert here an ID that of the Assistant you’re going to use in this workflow.
  • bot_gpt_storage_uuid. Visit this site to generate a unique string for storing data in key-value pairs and put it into this variable.
  • bot_loading_phrases. An array of phrases used to indicate loading and to wait for the GPT response. Each phrase increases the maximum waiting time for the GPT assistant's response by 8 seconds (this can be regulated in the scenario itself). If you don’t want to create it on your own, just copy and paste this list.
  • bot_assistant_prompt. A prompt for the assistant that you’ll send to the bot together with the user’s message. Write your own or use this one if you like:


You need to recall your instructions and try to respond with relevant information to that message.

- First, understand the intent behind the user's message.

- If the user's message is too short to understand or not too specific to answer - tell him that and ask questions to clarify his message.

- If the user’s message relates to the Latenode, use the files downloaded to you to find any related information you can use to help him.

- If the user’s message doesn’t relate to the Latenode, also try to answer it. You can skip the docs search part for the sake of speed and just try to give the answer based on your own knowledge.

- Finally, respond concisely and understandably. Respond in the same language the user used to write to you.

Choose string type for every variable except bot_loading_phrases, it should be a JSON.

Set up Webhook triggers

To make a chatbot scenario work, you need to set up two webhook triggers.

First one is triggered after the conversation starts in the web chat bot widget and creates a thread with chatGPT assistant.

Illustration Of setting up Webhook triggers

First, customize your ‘Conversation created’  production url and copy it.

Results of work

Then go back to Chatwoot. Go to Integrations. Click the ‘Configure’ button on Webhooks, then add a new webhook. Paste the production URL here and choose the ‘Conversation created’ option. That’s it!

The second Webhook trigger is activated when the message is created. Do all the same here. Customize the production URL and copy it, then go to Chatwoot again and do everything the same but choose the ‘message created’ option instead of ‘Conversation created’.

Results

If you successfully passed all the previous steps, congrats! Save the scenario changes, click the ‘deploy’ button to activate the workflow, and that’s it! Now you know how to make an AI chatbot widget for your website!

Hope this article was clear, but if you have any questions on this AI chat bot scenario, you can always ask for help in the Latenode Discord channel.

See you soon and happy automating!

카테고리

AI
IT 및 개발
웹 사이트
광고 및 마케팅

자주 묻는 질문

프로그래밍에 익숙하지 않은 경우 Latenode 을 사용할 수 있나요?

예, Latenode 은 모든 기술 수준의 사용자를 위해 설계되었습니다. 자바스크립트에 능숙한 사용자를 위한 고급 기능과 초보자를 위한 직관적인 시각적 도구 및 AI 지원을 제공합니다. 숙련된 개발자이든 초보자이든 Latenode 은 사용자의 기술 수준에 맞는 사용자 친화적인 환경을 제공합니다.‍‍

Latenode 을 타사 서비스 및 API와 통합할 수 있나요?

예, Latenode 은 다양한 타사 서비스 및 API와의 통합을 지원합니다. Latenode 을 다양한 온라인 플랫폼, 데이터베이스 및 소프트웨어 시스템에 연결하여 데이터 전송을 자동화하고 작업을 트리거하며 워크플로우를 간소화할 수 있습니다. Latenode 또한 통합 프로세스를 용이하게 하는 도구와 리소스를 제공합니다.

Latenode 무료 버전이 있나요?

예, Latenode 에서는 기능을 살펴볼 수 있는 무료 버전을 제공합니다. 이 버전에는 Latenode 의 일부 기능이 포함되어 있어 자동화를 시작하고 그 이점을 경험할 수 있습니다. 그런 다음 추가 기능 및 리소스를 위해 유료 요금제로 업그레이드할지 여부를 결정할 수 있습니다.

Latenode 란 무엇인가요?

Latenode 는 고객이 자동화를 통해 워크플로우를 간소화할 수 있도록 설계된 가시적이고 직관적인 자동화 도구입니다. 이를 통해 고객은 다양한 인터넷 서비스와 가젯을 연결하여 전산화 전략을 수립함으로써 의무를 자동화하고 생산성을 성공적으로 꾸밀 수 있습니다.

Latenode 어떻게 기회를 극대화할 수 있나요?

데이터 통합을 통해 모든 마케팅 도구를 한 곳에 통합함으로써 Latenode 운영 현황을 종합적으로 파악할 수 있습니다. 이를 통해 잠재적 기회를 더 쉽게 파악하고 정확한 데이터를 기반으로 정보에 입각한 의사 결정을 내릴 수 있습니다.