langgenius / langgenius/dify

Feature request: Add a conversational assistant panel for creating and modifying Dify apps

Open
#37,789 3 comments 2 reactions 0 assignees View on GitHub
project#dify
Dominant language
TypeScript
Stars
156k
Forks
24.6k
Avg merge
22h 9m
Merged PRs (30d)
610

Description

### Self Checks

- [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542).
- [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] Please do not modify this template :) and fill in all the required fields.

### 1. Is this request related to a challenge you're experiencing? Tell me about your story.

## Problem

Dify is already very powerful for building workflows and apps, but new users still need to understand app types, workflow nodes, DSL structure, draft editing, testing, and publishing before they can build confidently.

For many users, the first intention is much simpler:

> “Create a customer support workflow.”
> “Modify this workflow to make the answer more professional.”
> “Run this app with this test input.”
> “Publish this draft.”

Currently these actions require users to manually navigate multiple UI areas and understand implementation details. I think Dify could benefit from an official conversational assistant experience inside the Console.

## Proposal

Add an official Chat2Dify-like assistant panel in Dify Console that helps users create, modify, test, and publish Dify apps through natural language.

The panel could be embedded in two places:

1. Studio app creation page
- Add a “Create with Assistant” action.
- The assistant asks for missing requirements and creates a draft app after user confirmation.

2. Workflow / app editing page
- Add an assistant entry in the editor header.
- The assistant receives the current app context and can propose safe draft modifications.

## Expected workflow

1. User describes what they want in natural language.
2. Assistant generates a structured plan.
3. User reviews and confirms the planned operation.
4. Dify creates or updates the draft.
5. User can test-run the app.
6. Publishing still requires explicit user confirmation.

## Safety considerations

The assistant should not directly perform risky operations without confirmation.

Suggested safeguards:

- Preview before writing to Dify draft.
- Require confirmation before create / modify / publish.
- Use draft hash checks when applying changes.
- Block or warn on destructive workflow changes, such as mass node deletion, entry/exit rewrites, or broad edge rewiring.
- Keep generated changes explainable to the user.

## Existing proof of concept

I have implemented a working PoC as an independent sidecar service:

- Natural language app creation
- Draft modification preview
- Test run
- Publish flow
- Support for Workflow, Chatflow, Chatbot, Agent, and Completion apps
- Embedded Dify Console drawer via iframe
- Docker Compose overlay for running beside Dify
- Minimal Dify web adapter for Console entry points

PoC repository:
https://github.com/Garden12138/chat2dify

Screenshots / demo:
![](https://raw.githubusercontent.com/Garden12138/picbed-cloud/main/ai/chat2dify-v2-chat-workbench.png)
![](https://raw.githubusercontent.com/Garden12138/picbed-cloud/main/ai/dify-v2-support-workflow-professional.png)
![](https://raw.githubusercontent.com/Garden12138/picbed-cloud/main/ai/dify-v2-support-workflow-angry-customer.png)
![](https://raw.githubusercontent.com/Garden12138/picbed-cloud/main/ai/chat2dify-v3-dify-create-panel.png)
![](https://raw.githubusercontent.com/Garden12138/picbed-cloud/main/ai/chat2dify-v3-dify-modify-panel.png)

## Why this should be useful for Dify

This could make Dify easier for:

- New users who do not yet understand workflow construction.
- Teams that want to quickly prototype internal tools.
- Users who know the desired business process but not the exact workflow design.
- Existing users who want faster iteration on app drafts.

It also fits Dify’s product direction as an AI app development platform: the platform itself can help users build AI apps.

## Possible implementation path

This does not have to be merged as a large feature immediately.

A smaller first step could be:

1. Add official extension points in Dify Console for an assistant panel.
2. Pass app context to the panel, such as app_id, app_mode, and app_name.
3. Allow external or official assistant services to create/modify drafts through existing Console APIs.
4. Later, consider making the assistant a native Dify feature.

## Contribution

I would be happy to help contribute a PR or adapt the PoC to match Dify’s architecture and maintainers’ preferred design.

### 2. Additional context or comments

_No response_

### 3. Can you help us with this feature?

- [ ] I am interested in contributing to this feature.

Contributor guide

Open the contributing guide

Research direction

Review the Studio app creation page, workflow/app editing page, Console extension points, and the chat2dify proof of concept first. Trace the existing Console APIs and app context needed for draft preview, confirmation, test-run, and publish flows. Done should be an agreed, scoped first increment with explicit safety and confirmation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, nextjs, python, typescript
Domain
ai, backend-api-design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.