Replies: 1 comment 4 replies
-
Hey @Xiddiqui, both the Let me know if you need more help! |
Beta Was this translation helpful? Give feedback.
4 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.
-
const flow = {
start: {
message: "Hello! How can I assist you today?",
options: ["Add Client KYC"],
path: (input) => {
console.log("input", input);
if (input.userInput === "Add Client KYC") {
return "form_fill";
}
return "loop";
},
},
loop: {
message: async (params) => {
const result = await fetchData(params.userInput);
console.log(result);
return result;
},
path: "loop",
},
form_fill: {
message: "Please Fill the form bellow",
render: ,
chatDisabled: true,
},
end: {
message: "Your Lead created",
options: ["Add another Client KYC"],
path: "form_fill",
},
};
This is my flow function in form_fill when addLead api success it should go to my end block .
end: {
message: "Your Lead created",
options: ["Add another Client KYC"],
path: "form_fill",
},
How can i achieve this .
Beta Was this translation helpful? Give feedback.
All reactions