Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatbot flow #809

Open
fab-auri-dev opened this issue Jan 13, 2024 · 3 comments
Open

Chatbot flow #809

fab-auri-dev opened this issue Jan 13, 2024 · 3 comments
Assignees

Comments

@fab-auri-dev
Copy link

First of all, thank you for your work, it's a fantastic library. I would like to use it in my project as an editor to give the user the possibility to create a dialogue flow. Do you have any advice on how I could transform the flow? I thank you in advance for any help you can give me

@jerosoler
Copy link
Owner

Do you have any advice on how I could transform the flow?

What are you talking about?

@jerosoler jerosoler self-assigned this Jan 13, 2024
@fab-auri-dev
Copy link
Author

Do you have any advice on how I could transform the flow?

What are you talking about?

Forgive me for the unclear question. I would like to create an options node that when dragged would represent something like this

Screenshot 2024-01-14 103338

@jerosoler
Copy link
Owner

By dragging you can create whatever you want.

You can for example create two nodes and connect them.

Example:

const nodeA = editor.addNode('aaa', 1, 1, 100, 300, 'aaa', {}, 'aaa' );
const nodeB = editor.addNode('bbb', 1, 1, 800, 300, 'bbb', {}, 'bbb' );
editor.addConnection(nodeA, nodeB, 'output_1', 'input_1');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants