0
Under review

Carousel Card Node variable

Ariel Diaz 7 years ago updated 7 years ago 13

Is it possible to display a carousel with variable card node? That is, the cards nodes in the carousel come from the response of an API?

Answered

Ariel,


You will need to fetch the data from API and store it in a variable. This variable can then be used in the carousel card node.

Thanks for your answer.But I do not think it was clear. I have an API that returns the set of card node that the chatbot should display. Is it possible to do that? If it is not possible, how can I implement the visualization of a dynamic set of cards node?


Thanks!

Hi Praveed,

Did you see the case? It's possible?

Yes, this is possible. The data retrieved from API need to be first stored in a variable and this should be used in the Carousel Card node.

Hi Praveed.

In others words, my API returns the cards to be displayed. This can be done?

Can you explain how? Or send me an example?

Could you add the API in your episode in the bot and send me over the link? I'll then be able to make few changes to show you how it works.

Under review

Could you please let me know what data you'd like to retrieve from the API and show them in Carousel Card?

{

"CardList": {
"Cards": {
"Card": [

{

"Name": "Card1",

"ImageURL": "http://...",

"Subtitle": "ST1"

},

{

"Name": "Card1",

"ImageURL": "http://...",

"Subtitle": "ST1"

},

{

"Name": "Card1",

"ImageURL": "http://...",

"Subtitle": "ST1"
}

]

}
}
}

Thanks! Will review this further and update.

Oy. Or if you have another alternative, it will be welcome. Thank you!