Cookie Consent by Free Privacy Policy Generator 📌 Dev.to chatbot! 🤖


✅ Dev.to chatbot! 🤖


💡 Newskategorie: Programmierung
🔗 Quelle: dev.to

This is a submission for the Coze AI Bot Challenge: Bot Innovator.

What I Built

I built dev.to chatbot! 🤓

The bot is able to search the content of our beloved website and answer our questions.

For example, you can ask him to send you an article on a specific topic, and he can also analyze the found content in terms of the information I am looking for! 🤓

I see that it has potential as an advanced search engine for website content!

To create the robot, I wrote a plugin for integration with the search engine and the dev.to API 🤗, more information in the journey section 🚂

Demo

Link to bot: https://www.coze.com/store/bot/7358908091464794117

Your Configuration

Image description

Journey

It was an interesting task, initially it seemed much simpler, but in practice I got a little tired 😅

First of all, I want to mention that the coze.com platform is great! I had a lot of fun creating a bot or plugin is easy. I really like the built-in IDE for building the plugin, bravo! 👏

I was wondering about the use case for using the robot. Why would it be of value to anyone. I had a problem with this, but I decided to build a prototype to see how the AI ​​would use what I prepared. 🧑‍💻

At first I started using the "Browser" and "Google web search" plugins. However, the bot is unable to use the search engine on the dev.to website 😭 (it probably has problems with dynamically loaded content)

Image description

So I thought there must be some other way 🫰, I started searching for the API and found it 🥳

https://developers.forem.com/api/v1

The great joy was quickly extinguished by the fact that the API does not have a search engine 😭, there is an end for downloading published articles, but the results are completely different, and that's what I wanted. 🙋

Still looking for a solution, I started analyzing how the search engine works, guess what? I found that the search engine queries the endpoint underneath! 🥳 (not in the documentation 🫣)

https://dev.to/search/feed_content

Best of all, you can search not only articles but also users, podcasts, organizations, tags and comments! 🚀

At this point I already had the integration tool, but how do I integrate it with the chatbot? 🤖

The answer is a plugin! At the very beginning, I knew that I would need to prepare a simpler interface for the chatbot, so I immediately started working on a plugin built in the IDE. 🧑‍💻

Ultimately, it turned out that I would need:

  • content search tools
  • a tool to download article details (content), so that the chat bot can analyze the content in terms of the content I am looking for

However, along the way I created more tools, but these two remained as the most sensible ones.

Image description

I needed to add some of my own code, for example to build an appropriate query to the search engine endpoint:

const buildSearchQuery = async (input: Args<Input>['input']) => {
  let data: Record<string, string>  = {
    "class_name": objectTypeVales[input.object],
    "per_page": '60', // it's default value on dev.to. We want chatbot to use search like a user.
    "page": '0', // default value
    "search_fields": input.phrase
  };

  if (input.sort_by === 'newest') {
    data = {
      ...data,
      "sort_by": "published_at",
      "sort_direction": "desc",
    };
  }

  if (input.sort_by === 'oldest') {
    data = {
      ...data,
      "sort_by": "published_at",
      "sort_direction": "asc",
    };
  }

  const params = new URLSearchParams(data);
  const query = params.toString();

  return query;
}

After writing the code, a plugin for dev.to was created 🤓 -> https://www.coze.com/store/plugin/7362263649500741638

Image description

With connecting the plugin to my bot, I got an answer to a question that the previous bot was unable to answer. 🥳

Image description

The last thing left to decide was which model to connect to the test:

  • ChatGPT 3.5 -> quick replies, but unfortunately not very accurate
  • ChatGPT 4 -> slower, responses much better. Unfortunately, there is too little context to analyze more content
  • ChatGPT 4 turbo -> even slower, but gives the best results.

Finally, I set ChatGPT 4 Turbo, after testing it is the most practical for a chatbot.

I'm curious about your chatbot use! Is it practical for you? How can it be developed?

See you in the next challenge!

...

✅ Linux: Difference Between /dev/tty, /dev/tty0, and /dev/console


📈 21.17 Punkte

✅ Build a Production-Ready, Intelligent Chatbot With the MongoDB Chatbot Framework


📈 20.13 Punkte

✅ Dev.to chatbot! 🤖


📈 17.12 Punkte

✅ Ping of Death, 500 Year Old Ciphers, Pwn The Dev, & Chatbot's Order 66 - PSW #766


📈 17.12 Punkte

✅ Google Chrome Dev (32 Bit) 82.0 Dev Deutsch


📈 14.11 Punkte

✅ A dev's gotta do what a dev's gotta do.


📈 14.11 Punkte

✅ 300th Episode special, Privacy Sandbox dev preview 3, and more dev news!


📈 14.11 Punkte

✅ Google Chrome Dev (64 Bit) 80.0 Dev Deutsch


📈 14.11 Punkte

✅ From Dev To Dev: The Path To Success In 5 Steps


📈 14.11 Punkte

✅ /dev/mapper/lvm_volume -> /dev/dm-0


📈 14.11 Punkte

✅ What happens if mv dev/null dev/null?


📈 14.11 Punkte

✅ Using dev containers with VS Code for an easier dev setup


📈 14.11 Punkte

✅ Edge Dev's latest update adds custom keyboard shortcuts to Dev Tools


📈 14.11 Punkte

✅ Dev Show Top 5 from the Chrome Dev Summit 2019


📈 14.11 Punkte

✅ Dev Up 2023: Leveling Up Our Dev Skills, Security Posture, and Careers


📈 14.11 Punkte

✅ Dev Show Top 5 from the Android Dev Summit 2019


📈 14.11 Punkte

✅ Independent Dev vs. Company Dev: Unlocking the Secrets to Thriving in Your Career - The Ultimate Guide


📈 14.11 Punkte

✅ Introduction [1 of 8] | Beginner's Series to: Dev Containers | Beginner's Series to: Dev Containers


📈 14.11 Punkte

✅ Dev Show Top 5 from the Firebase Dev Summit ‘19


📈 14.11 Punkte

✅ What is the difference between /dev/ttyUSB and /dev/ttyACM? (2013)


📈 14.11 Punkte

✅ /dev/bus/usb/001/008 vs /dev/sdb


📈 14.11 Punkte

✅ What are /dev/random and /dev/urandom in Linux?


📈 14.11 Punkte

✅ Medium CVE-2020-7686: Rollup-plugin-dev-server project Rollup-plugin-dev-server


📈 14.11 Punkte

✅ Publishing Docusaurus to dev.to with the dev.to API


📈 14.11 Punkte

✅ TensorFlow Dev Summit ‘20, Google for Games Dev Summit, Cloud AI Platform Pipelines, & much more!


📈 14.11 Punkte

✅ Dev Containers - Part 3: Full Stack Dev - Docker Compose & Database


📈 14.11 Punkte

✅ Publishing Docusaurus to dev.to with the dev.to API


📈 14.11 Punkte

✅ Collaborative ML with TensorBoard.dev (TF Dev Summit '20)


📈 14.11 Punkte

✅ Dev Containers - Part 4: Remote Dev - Develop on a Remote Docker Host


📈 14.11 Punkte

✅ Fix COD MW2 Dev Error 11153 and Dev Error 6036: Status Installing Stuck Glitch


📈 14.11 Punkte

✅ Samsung Kernel Arbitrary /dev/vipx / /dev/vertex kfree


📈 14.11 Punkte

✅ Dev.To Bug (or Dev.To.futura)


📈 14.11 Punkte











matomo

Datei nicht gefunden!