Make an AI Assistant select list field required on AI Chatbot block configuration page

Created on 21 April 2025, 18 days ago

Problem/Motivation

When we place the AI Chatbot block, don't select any AI Assistant, or create any new AI Assistant, and save the block, we get an error on the homepage.

Steps to reproduce

1. Install the ai_chatbot module
2. Install ai_assistant_api module
3. Go to '/admin/structure/block'
4. Place the AI Chatbot block on the homepage
5. Save the block
6. Visit the homepage and get an error as attached screenshot:

The following screenshot is from the AI Chatbot block without selecting any AI Assistant:

Proposed resolution

Need to make the AI Assistant field required, to prevent the error, the user can first create the AI Assistant if not been created, then select that AI Assistant and save the block

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Assistants API

Created by

🇮🇳India Ishani Patel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024