Question: I have some questions. Can you help me?

Answer: Yes, I can.

Question: What is the technology behind you?

Answer: The technology behind me is GPT-3, Forge, Node.js, React and Confluence.

Question: Can you explain what an artificial intelligence is?

Answer: Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. It is related to the similar task of using computers to understand human behavior, but AI does not have to be explicitly concerned with imitating humans.

Hi there! I am Antonio. I am a software engineer with more than 13 years of experience developing software for different sectors and technologies. Since 2013 I work mainly as an Atlassian administrator and plugin developer for Jira and Confluence (on premise and cloud).

The previous conversation is an example of using the plugin that I have developed for this contest.

What is this project about?

It is a chatbot equipped with artificial intelligence that will help Confluence users to solve their doubts based on the content of the Confluence instance.

Use cases

  • Help employees to answer questions about internal documentation or processes
  • Help support teams to solve customers problems
  • Help consultants to find information about projects
  • Improve the knowledge base of Jira's customer portals by letting your customers ask questions to the AI. This will be available once Atlassian provides a section in customer portals for Forge apps.

Inspiration

I had been playing in my spare time with an artificial intelligence library called GPT-3 for a while when I heard about this contest. So I had the idea of ​​creating a chatbot that was able to read Confluence content and answer user questions in a human-like way. The main objective is to help Confluence users as well as support teams.

How did I build it?

Like any other Forge plugin, I used UIKit for the settings screen and CustomUI for the chat. I used the Confluence API to access the Confluence content, and the GPT-3 API to generate the conversation.

What I learned?

So far I had made quite a few plugins for Jira and Confluence on premise, and some for the cloud using Connect. But this is my first Forge plugin, so this contest has helped me to learn how to develop Forge apps.

On the other hand, although in my opinion the idea seemed very interesting for Confluence users, I did not know if it was technically feasible. Now I know that although the answers are not yet very precise and that I need to improve the comprehension skills of the AI, as a proof of concept the project is totally viable and it may become a real plugin after some adjustments.

What's Next?

List of next tasks:

  • Improve the comprehension skills of the artificial intelligence.
  • Add more configuration options.
  • Optimize the number of tokens used.
  • Enable the chatbot on Jira Service Management customer portals to improve the knowledge base. This part will be possible when Atlassian enables a section in the Jira customer portal.
  • Find a better name for this app :D

To consider.

API Key: I provide a default OpenAI key. But this key is a free and limited version for developers. The tests are very likely to consume the number of available tokens. For this reason, I encourage you to register on the OpenAI website, generate your own secret key, and enter it in the configuration screen of this plugin.

Noise: HTML and CSS tags cause a lot of noise that makes it difficult for the AI ​​to understand the text. I therefore advise that the text on the Confluence pages have as little style as possible. I am working to improve this part.

Size: The more content the Confluence instance has, the more tokens are consumed by the AI. I advise using the plugin on small Confluence instances if OpenAI pricing is an issue for you. You can see the prices here: https://beta.openai.com/pricing

Extra:

GPT-3 is an AI that has been trained with thousands of web pages as well as with the wikipedia. So don't limit yourself to questions related to the content of the Confluence instance, you can ask whatever you want like "Who won the 2010 World Cup?" or "What is the northernmost city in the world?"

How to use the plugin?

Configuration: In the Confluence settings section you will see an "AI Assistant settings" page where you can add your OpenAI API key. If you leave it blank, the plugin will use a default key. Important: it is possible that the default key does not have available tokens and therefore that the chatbot does not answer your questions. I encourage you to include your own API key.

The other available field is 'Max tokens'. If you have not added any key, the value of this field will always be 50. If you have added your own key then you will be able to modify the maximum number of tokens that the AI ​​can use to generate the response. The more tokens, the longer the answer may be.

Chat: On the Confluence home page you will see in the right column a widget called "AI Assistant". Ask what you want!

Thanks for reading. I hope you enjoy my app as much as I enjoyed developing it.

Built With

Share this project:

Updates