logo

NJP

How to Chat with GPT of OpenAI directly via Virtual Agent by integrating with OpenAI Assistants API

Import · Feb 18, 2024 · article

I have posted How to build ServiceNow user interface (Virtual Agent) on the portal to chat with Chat GPT blog to introduce how to integrating with ChatGPT. This blog will introduce how to integrating with the Assistants API to let ServiceNow user to chat with the GPT with OpenAI in real time.

Objectives

  • Introduction OpenAI APIs ( ChatGPT, Assistants API and Gemini API)
  • Use Case
  • Technical Approach
  • Design
  • Implementation
  • References

Introduction OpenAI APIs

ChatGPT is a specific language model, while the OpenAI Assistants API is an interface for integrating language models into applications. The Gemini API, on the other hand, is part of OpenAI's initiative to enhance AI capabilities by combining multiple models for improved performance.

The Assistants API enables developers to easily build powerful AI assistants within their apps. This API removes the need to manage conversation history and adds access to OpenAI-hosted tools like Code Interpreter and Retrieva

OpenAI Assistants API.

• Type: The OpenAI Assistants API is an interface that allows developers to integrate language models into their applications or services. It is designed to make it easier for developers to build custom conversational agents.• Usage: Developers can use the Assistants API to create applications that involve interactive and dynamic conversations, tailored to specific use cases.

• Access: Available through the OpenAI platform, developers can use the API to leverage OpenAI's language models.

View original source

https://www.servicenow.com/community/in-other-news/how-to-chat-with-gpt-of-openai-directly-via-virtual-agent-by/ba-p/2799472