Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Creating a Chatbot with OpenAI in Go

via CodeSignal

Overview

Dive into the world of AI by building a chatbot using OpenAI! Learn to send messages, tweak API settings, keep track of conversations, and craft unique system prompts. Explore AI's potential in a fun and interactive way!

Syllabus

  • Unit 1: Sending a Simple Message to OpenAI
    • Changing the Prompt to Request a Fun Fact
    • Changing the OpenAI Model in Go
    • Fixing the AI Response Extraction Bug
    • Requesting Multiple AI Responses in Go
    • Completing the OpenAI API Interaction in Go
  • Unit 2: Exploring Model Parameters
    • Exploring Default AI Behavior
    • Controlling Response Length with Max Tokens in Go
    • Adding Temperature Parameter to Control AI Creativity
    • Adding Presence Penalty to Encourage New Topics
    • Customizing AI Output with Frequency Penalty in Go
  • Unit 3: Message Types and Conversation History
    • Starting a Conversation with OpenAI in Go
    • Passing Conversation History to AI
    • Managing Conversation Context in Go
    • Visualizing Conversation History in Go
    • Enhancing the sendMessage Function for Efficient Conversation Management
  • Unit 4: Personalizing AI's Behavior with System Prompts
    • Transforming AI Persona with System Prompts
    • Maintaining AI's Playful Poet Persona Over Multiple Interactions
    • Fixing the System Prompt Bug in Go
    • Defining a New AI Persona with System Prompts
  • Unit 5: Managing Multiple Chat Sessions with OpenAI
    • Creating and Managing Unique Chat Sessions in Go
    • Managing Chat Sessions in Go
    • Integrating OpenAI API for Dynamic Chatbot Responses
    • Managing Multiple Chat Sessions in Go

Reviews

Start your review of Creating a Chatbot with OpenAI in Go

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.