Could you please give me more details about sendCards cloud function?
Can we have a list inside a list option?
I need + like expandable option inside FAQs also.
Could you please give me more details about sendCards cloud function?
Can we have a list inside a list option?
I need + like expandable option inside FAQs also.
Hi @Sachin_Muksha ,
Please check this code,
return new Promise(resolve => {
// Your logic goes here
let arr = [];
let listcard1 =
{
title: 'COVID-19 Queries',
options: [{
title: "Domestic - Covid travel guidelines",
text: "Domestic - Covid travel guidelines"
}, {
title: "International - Travel guideliness",
text: "International - Travel guideliness"
}, {
title: "Mandatory web check in",
text: "Mandatory web check in"
}, {
title: "Fly safe and hassle-free",
text: "Fly safe and hassle-free"
}, {
title: "Interest on credit shell",
text: "Interest on credit shell"
}]
} ;
let listcard2 =
{
title: 'Flight COVID-19 Queries',
options: [{
title: "Domestic - Covid travel guidelines",
text: "Domestic - Covid travel guidelines"
}, {
title: "International - Travel guideliness",
text: "International - Travel guideliness"
}, {
title: "Mandatory web check in",
text: "Mandatory web check in"
}, {
title: "Fly safe and hassle-free",
text: "Fly safe and hassle-free"
}, {
title: "Interest on credit shell",
text: "Interest on credit shell"
}]
} ;
arr.push(listcard1, listcard2);
resolve(arr);
});
for which you will be able to create lists.
Also follow the document → Implement New Card in Yellow AI Cloud Platform | yellow.ai for the same
I need + sign Infront of below options and it should be also openable with options, How I can do it.
Domestic - Covid travel guidelines ,
International - Travel guideliness ,
Mandatory web check in,
Fly safe and hassle-free,
Interest on credit shell
As of now on clicking Domestic - Covid travel guidelines its directly moving to journey.
This second level drill down cannot be handled.
Best way to handle this would be to select
FAQs → Passengers with Special Needs, which triggers on flow
In that flow, present the other options as a separate message