AI INTEGRATION SESSION

Using only JavaScript and ChatGPT to create an AI integrated web app, running in a web browser, via simple web technologies. Java Spring Boot samples are included too.

  • Duration: 4 hours.
  • Type: Online or Onsite.
  • When: 5 or more participants.

SUGGESTED TOPICS


  • Using AI as a coding assistant.
  • Understanding the AI layers.
  • Large Language Models (LLM) and APIs.
  • Integrating AI in JavaScript.
  • Integrating AI into a full stack Java app (Spring Boot).

EXERCISES


  • Develop a JavaScript-based AI app.

TOOLS


JAVASCRIPT

A lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for Web pages.


CHATGPT

An advanced AI chatbot from OpenAI, a Generative Pre-trained Transformer, that generates human-like text by predicting the next word in a sequence, allowing it to answer questions.


EXAMPLES


Click the images below to access the GitHub code repository.

GOOD VS. EVIL

A pure JavaScript web app running locally (no server needed, just an IDE).

Simulates a split personality AI responding simultaneously with different personalities.

  • ChatGPT
  • JavaScript (+ HTML & CSS).
  • Includes features like
    • Microphone (speech to text) input message for the user prompt.
    • Keyboard shortcuts.
    • Audio mute/unmute.
    • Configurable AI and audio settings.
    • And more...

 

JOKES

Java-based full stack solution (backend & frontend).

  • ChatGPT.
  • Java / Spring Boot.
  • Contains 3 example variants
    • Simple joke request.
    • Simple joke request, with rate limiting (max. X try or blocked for a period).
    • Custom, if the user prompt contains X then do Y.