OpenAI Assistant fetching coffee
AI Assistant initial question
AI Assistant chat dialog box

This project is not covered by Drupal’s security advisory policy.

Provides AI (Artificial Intelligence) assistants that users can interact with and which base their replies on documents that have been added to them.

Currently limited to using the OpenAI API service, for which a paid subscription is required. Using alternative AI services is on the development roadmap, including self hosted AI.

Features

  • Assistant will base replies on text files added to it
  • Assistant set up includes an instructions prompt telling the assistant how to reply to requests
  • Assistant is displayed in a block and can be added to any page
  • Multiple assistants (optional)
  • Users can switch to previous conversations they had with an assistant (optional)
  • Download a conversation (optional)

Installation

  1. Set up OpenAI API account and key.
  2. Install OpenAI module:
    composer require 'drupal/openai:^1.0@beta'
  3. Configure OpenAI module with OpenAI key
  4. Install OpenAI Assistant
    composer require 'drupal/openai_assistants:^1.0@beta'

Post-Installation

  • Set up OpenAI integration
  • Create an Assistant entity
  • Add an Assistant block to pages

Additional Requirements

OpenAI API subscription

OpenAI module (required)

Supporting organizations: 
Sponsored development

Project information

Releases