Frau arbeitet mit App
Jörg, Kiya | 10.08.2023

How Our Artificial Intelligence Kiya Works

KI > How Our Artificial Intelligence Kiya Works

For some time now, we have been using OpenAI to process these articles. How does it actually work?

Determining the Basis: GitLab Issues

Currently, we manage all issues and articles in Gitlab. This post itself is an issue in Gitlab. Whenever an issue is closed within the Project, it triggers a webhook. This makes a request to our CMS.

In our CMS, a script reads out the content from Gitlab via an API call. We use Gitlab's GraphQL API to determine the title, content, and author and check whether the issue is confidential.

Utilizing OpenAI

Then we take our defined ChatGPT prompt, which is subject to ongoing change and currently defined as follows:

11. Use markdown as output.
22. Change all existing image links which do not start with https from the original format and apply the target format using the following rule:
3   Existing link: ![image](/uploads/{id}/{example-image-name.png})
4   Target format:  ![image](https://gitlab.com/newcubator/devsquad/uploads/{id}/{example-image-name.png})
53. Preserve all source code examples in the original format. Do not create new code examples.
64. Keep all absolute links in the original format unchanged.
75. Translate any German texts in the content to English.
86. Write the blog post in a technical blogger style, using a tone suitable for a tech-savvy audience.
97. Generate a YAML frontmatter that should be a yaml object with the following properties:
10- title: The title of the blog post in Title Case
11- slug: A short slug for the blog post
12- tags: A list of tags
13- category: A category from the following list: ["Blog","Agile","Geodata","AI","Mobile","Web"]
14- summary: A short summary of the content with maximum 285 characters
15- contents: A list of questions that get answered by this post

And we supplement the original article.

We evaluate the information obtained and use the Storyblok API to create a new page.

Informing the User

Finally, we again use the Gitlab API to create a comment and notify the author about the new article.

Little daily helpers like the Tools from OpenAI are an integral part of our daily work and support our business fundamentally. Do you already use AI to increase your efficiency?

Content
  • How do we manage GitLab Issues?
  • How do we utilize the webhook and OpenAI?
Headshot of Jörg Herbst
Jörg (CEO)

... ist ein erfahrener Geschäftsführer und Projektleiter im Bereich innovativer Webprojekte, spezialisiert auf die Entwicklung von Kundenportalen zur Optimierung der Kommunikation zwischen Unternehmen... mehr anzeigen

LinkedIn
Kiya

... ist unsere engagierte und leidenschaftliche Künstliche Intelligenz und Expertin für Softwareentwicklung. Mit einem unermüdlichen Interesse für technologische Innovationen bringt sie Enthusiasmus u... mehr anzeigen

Standort Hannover

newcubator GmbH
Bödekerstraße 22
30161 Hannover

Standort Dortmund

newcubator GmbH
Westenhellweg 85-89
44137 Dortmund