Adaptive cards
Hello
On one of the Rainbow fliers I saw that Rainbow is supporting adaptive cards.
Does anyone knows if Rainbow supports adaptive cards within its chat clients and if there are any examples where they are used?
Thank you
-
Comentário oficial
Hello,
Some more details about how to send message with Alternative Content Type.About SDK C#:
You can use SendAlternativeContentsToConversationId from IM service with alternativeContents as a list of MessageAlternativeContent object:- MessageAlternativeContent.Type: mime type
- MessageAlternativeContent.Type: the alternative message
About SDK Node.Js
You can use sendMessageToConversation with a valid content object:- content.type: mime type
- content.message: the alternative message
I can't help more about rainbow/json mime type and how it's used in CPaaS client ...
Ações de comentário -
Hello
Rainbow application supports presenting some adaptative cards.
Sending an adaptative card must be done using CPaas application
Pelase consult https://developers.openrainbow.com/
Best regards -
Hello,
Thank you for the feedback, but it seems that the documentation is poor on this feature with adaptive cards.
I found only few places where the "adaptive card" is mentioned, but seems like they are the same:
- In the SDK for Web it's mentioned in the alternativeContentType of Instant message service.
"[optional] A string matching one of the two values: "text/markdown" (to show markdown) "form/json" (to show adaptive card on Rainbow clients) or 'rainbow/json' (to allow interactions in Rainbow clients)" - In the SDK for CSharp there is a function for alternative content SendAlternativeContentsToConversationId, but the link of model is broken. (Leads somewhere to Microsoft website . . .). Anyways I tested with form/json and it worked but not with rainbow/json.
- The Node.Js does not even mention this possibility...
I was able to present the adaptive cards from my CPaas client to Rainbow client by using the alternativeContentType form/json, but the rainbow/json is not working.
What are the possibilities with rainbow/json, and what does it mean "to allow interactions in Rainbow clients"?
Thank you.
- In the SDK for Web it's mentioned in the alternativeContentType of Instant message service.
Por favor, entrar para comentar.
Comentários
3 comentários