Top

Adaptive cards

Comments

3 comments

  • Official comment
    Christophe IRLES

    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 ...

    Comment actions Permalink
  • Jean-Luc BOUSSEL

    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

    0
    Comment actions Permalink
  • Ekrem AJDINOVC

    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message