Skip to content

Add validation to require opening statement when suggestion questions are configured #27842

Closed

Description

@Nov1c444

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

main

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Open the Basic App (Chat App or Agent App) settings
  2. Navigate to the opening statement configuration modal
  3. Leave the "Opening Statement" field empty (the field with less prominent border color)
  4. Add one or more "Suggestion Questions" in the options below
  5. Save and publish the configuration
  6. Check the chat interface
Image

✔️ Expected Behavior

  • The system should validate that an opening statement is required when suggestion questions are configured
  • Users should receive a clear error message indicating that opening statement cannot be empty when suggestion questions are present
  • The save/publish action should be blocked until the opening statement is filled in

❌ Actual Behavior

Users can save the configuration with only suggestion questions filled in and opening statement left empty.
The suggestion questions do not appear in the chat interface because the opening statement is empty

Image

Activity

  1. self-assigned this
    on Nov 5, 2025
  2. added
    💪 enhancement
    on Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💪 enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions