`

Make sure to replace the VAKFlowID with your own VAKFlowID.

ReactJS

For react integration visit this link.

Make sure to replace the VAKFlowID with your own VAKFlowID.

About the Author:

Ganesh is the founder of VAKX, a platform designed to make building AI-powered assistants accessible to everyone. With a background in AI solutions, he’s passionate about helping businesses automate tasks and scale operations through intelligent assistants.

Reach me at [email protected]

Thank you!

","image":"http://www.luping.net/uploads/20241029/1730189173672097758ef8e.png","datePublished":"2024-11-05T13:37:01+08:00","dateModified":"2024-11-05T13:37:01+08:00","author":{"@type":"Person","name":"luping.net","url":"https://www.luping.net/articlelist/0_1.html"}}
」工欲善其事,必先利其器。「—孔子《論語.錄靈公》
首頁 > 程式設計 > 使用 VAKX 建立您的無程式碼 AI 代理

使用 VAKX 建立您的無程式碼 AI 代理

發佈於2024-11-05
瀏覽:175

If you’ve been keeping up with the AI space, you already know that AI agents are becoming a game-changer in the world of automation and customer interaction. These assistants can handle everything from answering basic customer queries to performing complex, context-aware tasks. At VAKX, we’ve made it easier than ever for developers and businesses to build their own AI agents without deep AI expertise. Today, I want to share a personal look at how to go about building your own AI agent using the VAKX platform.

Before diving into the integration process, I recommend exploring VAKX and interacting with our AI chat to gain a comprehensive understanding:

VAKX

Step-by-Step Guide to Building Your Own AI Agent with VAKX

Step 1: Get Started

Log in to VAKStudio

Step 2: Create a Prompt Template

  • Go to the “Prompt Playground” tab.
  • Click the “Create Prompt” button in the top-right corner to create a new prompt.
  • Name the prompt “FoodSprint RAG Prompt” and leave the Description field blank for now.
  • Click “Create Prompt” to save it.

Build your No-Code AI Agent with VAKX

Step 3: Add a RAG Prompt

While there are multiple options in the prompt template, we’ll focus on adding RAG context to the prompt for this tutorial.

  • Once you create a prompt, you will be automatically redirected to the newly created prompt page, where you can configure its settings.
  • To do this, click the “Add Context” button under the “Add RAG Context” section. This will automatically load the preset embedding context prompt.
  • If you’d like to modify or review the context prompt, click the “Config” button.

Build your No-Code AI Agent with VAKX

A side panel will open where you can toggle between pre-loaded prompt templates with context IDs or create a custom prompt for embedding context.
For this tutorial, we’ll proceed with the default prompt, “Follow Context With Some Creativity.”
Close the config panel and click “Save” in the top-right corner to apply your changes.

Build your No-Code AI Agent with VAKX

Step 4: Uploading Markdown & CSV files​

  • To generate embeddings for the prompt context, we’ll first need to upload a Markdown files with custom data to the datastore. For this tutorial, we’ll use a simple dataset to create an AI assistant for FoodSprint.
  • Download the files by clicking the following links. We’ll use these Markdown & CSV files to create vector embeddings: Download — FoodSprint.md Download — FoodSprint_menu.md Download — FoodSprint_structured.csv
  • Next, head over to VAKStudio and navigate to the Datastore tab in the sidebar. Then, click on the “Markdown Files” tab at the top-left corner.

  • Click the “Create Folder” button, enter “FoodSprint Files” as the name, and then click “Create Folder” to confirm.

  • Next, click on the folder to open it.

  • Once inside, click the “Upload Files” button at the top-right corner.

  • Drag and drop the FoodSprint.md and FoodSprint_menu.md files you just downloaded.

  • Finally, click “Upload Files” to complete the upload.

Build your No-Code AI Agent with VAKX

Follow these steps to upload your CSV file:

  • Go to the Datastore tab in the sidebar.
  • In the top-left corner, click on the “CSV Files” tab.
  • Click the “Create Folder” button, enter “FoodSprint CSV” as the folder name, and then click “Create Folder” to confirm.
  • Open the newly created folder by clicking on it.
  • Inside the folder, click the “Upload Files” button located at the top-right corner.
  • Drag and drop the FoodSprint_structured.csv file you just downloaded.
  • Finally, click “Upload Files” to finish the upload.

Step 5: Creating Vector Embeddings​

With the Markdown files uploaded, let’s proceed to create vector embeddings from it.

  • Go to VAKStudio and open the Vector Database tab from the sidebar.
  • To generate new vector embeddings, click the “New Embeddings” button in the top-right corner.
  • Name it FoodSprint Embeddings and provide an appropriate description.
  • Select Markdown as the type from the dropdown menu and choose FoodSprint Files as the Folder Name. Keep all other settings as default for this tutorial.
  • Click “Generate Embeddings” to start the process. The creation may take a few seconds, so please wait while the embeddings are generated.

Build your No-Code AI Agent with VAKX

Now, to create structured vector embeddings, follow these steps:

  • Go to VAKStudio and navigate to the Vector Database tab in the sidebar.
  • Click the “New Embeddings” button located at the top-right corner.
  • Name the embedding “FoodSprint Structured Embeddings” and add an appropriate description.
  • From the dropdown menu, select CSV as the file type and choose FoodSprint CSV as the folder name.
  • Leave the rest of the settings as default for this tutorial.
  • Click “Generate Embeddings” to begin the process. Please wait a few moments while the embeddings are being generated.

Step 6: Creating a VAKFlow​

With everything set, it’s time to create your VAKFlow.

  • Go to the VAKFlow Playground from the sidebar.
  • Click the “Create VAKFlow” button in the top-right corner to start a new flow.
  • Name it “FoodSprint RAG VAKFlow” and add a suitable description.
  • Click “Create VAKFlow” to complete the setup.

Step 7: Building a RAG Chatbot​

Now that everything is ready, let’s create the RAG Chatbot.

  • Open the newly created VAKFlow by selecting “Create VAKFlow” from the list. This will take you to the drag-and-drop LLM orchestration playground.
  • Drag and drop four nodes from left to right: VectorEmbeddings, InputPrompt, LLM, and ChatMemoryOutput.
  • In the VectorEmbeddings node, select FoodSprint Embeddings from the VectorDB dropdown.
  • In the InputPrompt node, choose the “FoodSprint RAG Prompt” template from the dropdown to use the prompt created in Step 3.
  • Connect the output (red edge) of the VectorEmbeddings node to the Context input 1 (green edge) of the InputPrompt node.
  • Connect the output (red edge) of the InputPrompt node to the input (green edge) of the LLM node.
  • Then, connect the output (red edge) of the LLM node to the input (green edge) of the ChatMemoryOutput node.
  • Finally, click “Save” in the top-right corner to save your VAKFlow.

Build your No-Code AI Agent with VAKX

Step 8: Adding VAKSearch For Rich Results​

To enable rich results in your chatbot, follow these steps to add the VAKSearch node:

  • Drag and drop the VAKSearch node into your workflow.
  • Enable the VAKSearch toggle on the ChatMemoryOutput node, and connect the VAKSearch node to it.
  • In the VAKSearch node, select FoodSprint Embeddings CSV from the Structured VectorDB dropdown.
  • Add the following line to the Description field of the VAKSearch node:
  • Invoke this when user asks about food and the message does not contain the phrase "Order Now".

Build your No-Code AI Agent with VAKX

Step 9: Transforming the Chatbot into an AI Agent​

An AI agent is a software entity that autonomously performs tasks, makes decisions, and interacts with its environment using artificial intelligence. It processes inputs, applies reasoning, and takes action to meet specific objectives in dynamic settings.

Here’s how to build a simple AI agent by adding tool calls to your chatbot:

To add tool calls, enable the Tool Calls toggle in the InputPrompt node.
Drag and drop the ToolCalls node, and connect its red edge to the ToolCalls Input on the InputPrompt node.
Enable the SaveData tool call, then click on the settings icon to configure it.
In the Condition for invoking tool call, enter:
invoke this toolcall !!ONLY WHEN!! user has !!"Order Now : "!! in message, name & contact number are required parameters.

Click Add Parameter three times to add three parameters:

  • First parameter: set key as name and description as name of the user.
  • Second parameter: set key as contact and description as phone number of the user.
  • Third parameter: set key as product name and description as name of the product user is ordering. For each parameter, click the bell icon and add an email address in the field below to receive notifications when an order is placed. In the Return value field, enter: Thanks for ordering. Our executive will get in touch with you soon.

Finally, click Save to apply the changes.

Build your No-Code AI Agent with VAKX

Step 10: Build & Testing​

Now let’s build the VAKFlow by clicking on “Build” button at the top-right corner, and you are ready to test the AI Chatbot.
To test the AI Chatbot, click on “Test” button at the top right of the screen. This will open up a chat popup to interact with AI Chatbot.
Try chatting with AI Chatbot. Few sample queries are :

  • What are the starter options available?
  • Give me Mexican dessert options
  • How much time it will take to get delivery?
  • I want refund

Build your No-Code AI Agent with VAKX

And that’s it! Your Chatbot is now ready to use!

What Next?​

  • Have fun playing & experimenting with it!
  • Experiment with prompt templates to build unique & interesting LLM applications.
  • Experiment with different tunable paramters of nodes.
  • Deploying VAKFlows​

To deploy a VAKFlow, follow these steps:

Go to the Deployment Dashboard.
Click on the New Deployment button at the top-right corner. This will open up a popup.
A list of VAKFlows ready for deployment will be displayed. Ensure the VAKFlow you want to deploy has already been built.
Select the VAKFlow from the list and click on the Deploy button.
You can configure the AI parameters like AI image, Name, Or allowed domains.

If you want to share this AI with your friends you can also enable the App and share the link (or QR code).

Integration Options

Vanilla Js

You can copy the vanilla js integration code directly from the vanillajs option from integration options. There you’ll have all the variables configured by default.

Otherwise following is the code snippet:

`

`

Make sure to replace the VAKFlowID with your own VAKFlowID.

ReactJS

For react integration visit this link.

Make sure to replace the VAKFlowID with your own VAKFlowID.

About the Author:

Ganesh is the founder of VAKX, a platform designed to make building AI-powered assistants accessible to everyone. With a background in AI solutions, he’s passionate about helping businesses automate tasks and scale operations through intelligent assistants.

Reach me at [email protected]

Thank you!

版本聲明 本文轉載於:https://dev.to/dganesh1999/build-your-no-code-ai-agent-with-vakx-4dml?1如有侵犯,請聯絡[email protected]刪除
最新教學 更多>
  • Polyfills-填充物還是縫隙? (第 1 部分)
    Polyfills-填充物還是縫隙? (第 1 部分)
    幾天前,我們在組織的 Teams 聊天中收到一條優先訊息,內容如下:發現安全漏洞 - 偵測到 Polyfill JavaScript - HIGH。 舉個例子,我在一家大型銀行公司工作,你必須知道,銀行和安全漏洞就像主要的敵人。因此,我們開始深入研究這個問題,並在幾個小時內解決了這個問題,我將在下...
    程式設計 發佈於2024-11-05
  • 移位運算子與位元簡寫賦值
    移位運算子與位元簡寫賦值
    1。移位運算子 :向右移動。 >>>:無符號右移(零填充)。 2.移位運算子的一般語法 value > num-bits:將值位向右移動,保留符號位。 value >>> num-bits:透過在左側插入零將值位向右移動。 3.左移 每次左移都會導致該值的所有位元向左移動一位。 右側插入0...
    程式設計 發佈於2024-11-05
  • 如何使用 VBA 從 Excel 建立與 MySQL 資料庫的連線?
    如何使用 VBA 從 Excel 建立與 MySQL 資料庫的連線?
    VBA如何在Excel中連接到MySQL資料庫? 使用VBA連接到MySQL資料庫嘗試連接使用 VBA 在 Excel 中存取 MySQL 資料庫有時可能具有挑戰性。在您的情況下,您在嘗試建立連線時遇到錯誤。 若要使用 VBA 成功連線至 MySQL 資料庫,請依照下列步驟操作:Sub Connec...
    程式設計 發佈於2024-11-05
  • 測試自動化:使用 Java 和 TestNG 進行 Selenium 指南
    測試自動化:使用 Java 和 TestNG 進行 Selenium 指南
    测试自动化已成为软件开发过程中不可或缺的一部分,使团队能够提高效率、减少手动错误并以更快的速度交付高质量的产品。 Selenium 是一个用于自动化 Web 浏览器的强大工具,与 Java 的多功能性相结合,为构建可靠且可扩展的自动化测试套件提供了一个强大的框架。使用 Selenium Java 进...
    程式設計 發佈於2024-11-05
  • 我對 DuckDuckGo 登陸頁面的看法
    我對 DuckDuckGo 登陸頁面的看法
    「為什麼不穀歌一下呢?」是我在對話中得到的常見答案。谷歌的無所不在甚至催生了新的動詞「Google」。但是我寫的程式碼越多,我就越質疑我每天使用的數位工具。也許我對谷歌使用我的個人資訊的方式不再感到滿意。或者我們很多人依賴谷歌進行互聯網搜索和其他應用程序,說實話,我厭倦了在搜索某個主題或產品後彈出的...
    程式設計 發佈於2024-11-05
  • 為什麼 Turbo C++ 的「cin」只讀取第一個字?
    為什麼 Turbo C++ 的「cin」只讀取第一個字?
    Turbo C 的「cin」限制:僅讀取第一個單字在Turbo C 中,「cin」輸入運算符有一個處理字元數組時的限制。具體來說,它只會讀取直到遇到空白字元(例如空格或換行符)。嘗試讀取多字輸入時,這可能會導致意外行為。 請考慮以下 Turbo C 代碼:#include <iostream....
    程式設計 發佈於2024-11-05
  • 使用 Buildpack 建立 Spring Boot 應用程式的 Docker 映像
    使用 Buildpack 建立 Spring Boot 應用程式的 Docker 映像
    介绍 您已经创建了一个 Spring Boot 应用程序。它在您的本地计算机上运行良好,现在您需要将该应用程序部署到其他地方。在某些平台上,您可以直接提交jar文件,它将被部署。在某些地方,您可以启动虚拟机,下载源代码,构建并运行它。但是,大多数时候您需要使用容器来部署应用程序。大...
    程式設計 發佈於2024-11-05
  • 如何保護 PHP 程式碼免於未經授權的存取?
    如何保護 PHP 程式碼免於未經授權的存取?
    保護PHP 代碼免於未經授權的訪問保護PHP 軟體背後的智慧財產權對於防止其濫用或盜竊至關重要。為了解決這個問題,可以使用多種方法來混淆和防止未經授權的存取您的程式碼。 一個有效的方法是利用 PHP 加速器。這些工具透過快取頻繁執行的部分來增強程式碼的效能。第二個好處是,它們使反編譯和逆向工程程式碼...
    程式設計 發佈於2024-11-05
  • React:了解 React 的事件系統
    React:了解 React 的事件系統
    Overview of React's Event System What is a Synthetic Event? Synthetic events are an event-handling mechanism designed by React to ach...
    程式設計 發佈於2024-11-05
  • 為什麼在使用 Multipart/Form-Data POST 請求時會收到 301 Moved Permanently 錯誤?
    為什麼在使用 Multipart/Form-Data POST 請求時會收到 301 Moved Permanently 錯誤?
    Multipart/Form-Data POSTsMultipart/Form-Data POSTs嘗試使用multipart/form-data POST 資料時,可能會出現類似所提供的錯誤訊息遭遇。理解問題需要檢視問題的構成。遇到的錯誤是 301 Moved Permanently 回應,表示資...
    程式設計 發佈於2024-11-05
  • 如何使用日期和時間物件來確定 PHP 中的時間邊界?
    如何使用日期和時間物件來確定 PHP 中的時間邊界?
    確定PHP 中的時間邊界在此編程場景中,我們的任務是確定給定時間是否在預先定義的範圍內。具體來說,我們得到三個時間字串:當前時間、日出和日落。我們的目標是確定當前時間是否位於日出和日落的邊界時間之間。 為了應對這個挑戰,我們將使用 DateTime 類別。這個類別使我們能夠表示和操作日期和時間。我們...
    程式設計 發佈於2024-11-05
  • 如何使用 CSS 變換比例修復 jQuery 拖曳/調整大小問題?
    如何使用 CSS 變換比例修復 jQuery 拖曳/調整大小問題?
    jQuery 使用CSS 轉換縮放拖曳/調整大小問題: 當應用CSS 轉換時,特別是變換:矩陣(0.5, 0, 0, 0.5, 0, 0);,對於一個div 並在子元素上使用jQuery 的draggable() 和resizing() 插件,jQuery 所做的更改變得與滑鼠位置「不同步”。 解決...
    程式設計 發佈於2024-11-05
  • 如何修復 TensorFlow 中的「ValueError:無法將 NumPy 陣列轉換為張量(不支援的物件類型浮點)」錯誤?
    如何修復 TensorFlow 中的「ValueError:無法將 NumPy 陣列轉換為張量(不支援的物件類型浮點)」錯誤?
    TensorFlow:解決「ValueError: Failed to Convert NumPy Array to Tensor (Unsupported Object Type Float)」工作時遇到的常見錯誤TensorFlow 的錯誤是「ValueError:無法將NumPy 陣列轉換為T...
    程式設計 發佈於2024-11-05
  • 如何有效率判斷本機儲存項目是否存在?
    如何有效率判斷本機儲存項目是否存在?
    確定本地儲存專案是否存在使用 Web 儲存時,在存取或修改特定專案之前驗證它們是否存在至關重要。在本例中,我們想要確定 localStorage 中是否設定了特定項目。 當前方法檢查項目是否存在的當前方法似乎是:if (!(localStorage.getItem("infiniteScr...
    程式設計 發佈於2024-11-05
  • Java 中的原子是什麼?了解 Java 中的原子性和線程安全
    Java 中的原子是什麼?了解 Java 中的原子性和線程安全
    1. Java 原子簡介 1.1 Java 中什麼是原子? 在Java中,java.util.concurrent.atomic套件提供了一組支援對單一變數進行無鎖定線程安全程式設計的類別。這些類別統稱為原子變數。最常使用的原子類別包括 AtomicInteger ...
    程式設計 發佈於2024-11-05

免責聲明: 提供的所有資源部分來自互聯網,如果有侵犯您的版權或其他權益,請說明詳細緣由並提供版權或權益證明然後發到郵箱:[email protected] 我們會在第一時間內為您處理。

Copyright© 2022 湘ICP备2022001581号-3