Custom Component #313
Unanswered
jerinjohn1412
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @jerinjohn1412, I introduced a bug fix for this in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Please find the flow i am using
const flow = { start: { message: "", options: ["What questions i can ask?", "Option2", "Option 3"], path: "custom_component" }, custom_component: { message: "Here's a custom component with a button:", component: CustomButtonComponent, path: "handle_input" }, ask_question: { message: "How can I help you today?", path: "handle_input" }, handle_input: { message: async (params: any) => { console.log(params.userInput); // const result = await resolve_input(params); // return result.message }, path : 'handle_input' }, }
Here is my customConponent
`const CustomButtonComponent = (params: any) => {
console.log('Custom component params:', params);
};`
When i click on button in custom compoent, and when i check in handle_input step, the userInput is always the option i clicked at the start step.
Expectation: Once user clicks on button, the userInput should change as per the added.
Beta Was this translation helpful? Give feedback.
All reactions