• IDD
  • IDD
  • Skybuffer AI
    • Skybuffer AI Installation and Initial Setup
      • On Business Technology Platform (BTP)
        • Skybuffer AI Installation Guide on BTP
      • On Premise: XSA Runtime and SAP HANA EE
        • Installing SAP HANA Including XS Runtime
        • XS Deployment Process
      • Post Installation User Guide
    • AI Agent
      • AI Agent Configurator
        • Register New AI Agent
        • Intents and Entities Creation
        • Skills Creation and Management
          • Standard Action Types
          • Call SAP System Action
          • Generative AI Action
          • Document Grounding Action
          • Log Insight Action
          • Skills Orchestration Action
          • Adaptive Card Action
        • Scheduling
        • Communication Channels
          • Copy the Existing Channel
          • Skills Activation
          • Destination Assignment
          • Webchat Communication Channel Setup
          • Facebook Messenger Communication Channel Setup
          • Zoom Communication Channel Setup
          • MS Teams Communication Channel Setup
          • Slack Communication Channel Setup
          • Telegram Communication Channel Setup
          • Viber Communication Channel Setup
          • WhatsApp Communication Channel Setup
          • Background Execution Communication Channel Setup
        • Monitor Section
      • Business AI Scenarios
      • Document Grounding Hub
      • Destination Management
      • Models Hub
      • Identity Providers
      • Survey Craft
      • Predefined Response Translator
    • AI Connector
      • AI Connector Configurator
      • AI Connector Logs
      • AWS Integration
      • Twilio Integration
    • SAP Backend for Business AI
      • Business AI Scenarios Package Administration
        • Installation Guide
        • Uninstallation Guide
      • Business AI Scenarios Package Maintenance Guide
        • Product License
        • Configuration of Email Sending Mechanism
          • Configuration Settings
          • Setup of Specific Email Sending Control
        • Technical User Setup
          • Central oData Service Authorization Role Maintenance
          • Technical User ID Creation
        • Assigning Business AI Scenarios to ABAP RIK Classes
        • Simplified User Creation Scenario Setup (Without Approval Workflow)
          • Maintain and Assign Reference Users for User Creation Scenario
          • Activate Notification for New User Creation (Optional)
        • User Creation Scenario Setup with Approval Workflow
          • Configure Approval Workflow for User Creation Scenario
          • Set Up Approval Steps for Different User Types Creation
    • HOW-TO Guides
      • MS Teams Integration. Single Sign-On
        • Create Azure Bot Service
        • Configure Azure Bot Service and Connect to the AI Agent MS Teams Channel
        • Create Middleware SSO Application
        • Configure Bot Service Application SSO
        • Create Azure AD Enterprise Application for SAP Backend
        • Configure oAuth2 in SAP System
        • Assign Identity Provider in AI Agent Channel Configuration
        • Deploy Your App into Microsoft Teams
        • Managing Application Keys
      • Skybuffer AI PoC Setup
        • SAP BTP
      • SAP AI Core Integration. Ollama Server Setup
      • MS SharePoint Integration. Add-in Registration
    • Troubleshooting
      • Edge Browser Access Issue
    • Hybrid Chats
      • Hybrid Chats Maintenance Guide
        • Business and Technical Users Setup
          • Create Business and Technical Users
          • Create Business Partners
        • Tenant Configuration
        • Live Pool Management and Configuration
          • Start Live Pool
          • Manage Live Pool
        • System Configuration
          • Configure Status Profile
          • Set Up Technical Messages for Hybrid Chats
        • Hybrid Chats Configuration
        • Hybrid Chats Categorization
          • Categorization Management
          • Categorization Mapping
          • Translate Categories
      • Hybrid Chats User Manual
        • Hybrid Chats
          • HC Archive Mode
          • HC Active Mode
        • HC My Data
          • Edit Personal Data and Profile Picture
          • Default Settings Management
          • Notification and Dialogue Manual Mode Management
          • Quick Replies Management
            • Standard User Mode - Quick Replies
            • Administrator User Mode - Quick Replies
        • HC Analytics
          • HC Analytics
          • Operator Activity Analytics
          • Exit Survey Analytics
        • HC Teams
          • Access HC Teams Application
          • Create New Team
          • Create New Team Member
          • Edit Agent
          • Edit Team Name

Adaptive Card Action

5 views 0

Adaptive Card Action Type

This Action Type allows the AI Agent to present information in a structured, interactive card format using the Adaptive Card framework. You can define the card layout in JSON, reuse captions for consistent labels or localization, and reference memory parameters to display dynamic data from integrations

Step 1. Create an Adaptive Card Action by pressing the button at the bottom of an Action Group:

A screenshot of a computer AI-generated content may be incorrect.

Step 2. A new Adaptive Card Action will appear and be ready to be filled in. Let’s set up this block step by step.

A white rectangular object with a black border AI-generated content may be incorrect.

A – Help Dialog

For guidance on the action setup, click the Information Icon.  A help dialogue with instructions will appear.

B – Adaptive Card JSON Editor

In the JSON Editor section, you paste the Adaptive Card schema that defines:

  • Layout (columns, containers, text blocks, images, etc.)
  • Styles (size, weight, color of text)
  • Interactive elements (buttons, inputs, toggles, etc.)

You can use the official Adaptive Card Designer to visually create cards and then copy the JSON output.

C – Adaptive Card Preview

D – Set Captions

Captions are static, reusable text labels you define once and then reference inside your card JSON. They’re there to keep your card consistent and to make it easier to translate or update labels without touching the card JSON every time.

Add captions in the JSON array format:
[“caption text 1″,”caption text 2”, …]

You can reference captions in the Adaptive Card structure using:

  • ${captions[n]} – for non-repeating sections
  • ${$root.captions[n]} – for repeated blocks (e.g., items in a list)

E – Select Data Source Memory Parameter
If your Adaptive Card displays data received from an integration, define the memory parameter as the data source here.

Use the following format to reference values:
${memory_parameter}

NOTE: If you’re using Adaptive Cards in an integrated Skybuffer Business AI Scenario with an ABAP RIK class data source, please refer to the full integration instructions in the online documentation.

Example of Adaptive Card creation

In this example, we will create a Vendor Open Items Search Card.

Step 1. Open the Adaptive Card Designer and design your card layout.

A screenshot of a computer AI-generated content may be incorrect.

Step 2. Once the card is ready, copy its structure and paste it into the Adaptive Card JSON Editor.

A screenshot of a computer AI-generated content may be incorrect.

Input example:

Show Adaptive Card JSON
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.6",
"body": [
    {
        "type": "Container",
        "items": [
            {
                "type": "ColumnSet",
                "columns": [
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "TextBlock",
                                "text": "${captions[0]}",
                                "wrap": true,
                                "size": "Large",
                                "weight": "Bolder",
                                "color": "Default",
                                "horizontalAlignment": "Center"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "type": "Container",
        "items": [
            {
                "type": "ColumnSet",
                "columns": [
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "TextBlock",
                                "text": "${captions[1]}",
                                "wrap": true,
                                "weight": "Bolder"
                            }
                        ]
                    },
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "TextBlock",
                                "text": "{{memory.rt_ppp_vendor_name}}",
                                "wrap": true,
                                "weight": "Bolder"
                            }
                        ]
                    }
                ]
            },
            {
                "type": "ColumnSet",
                "columns": [
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "Input.ChoiceSet",
                                "choices": [
                                    {
                                        "$data":"${rt_fmd_co_code.company_codes}",
                                        "title": "${text}",
                                        "value": "${id}"
                                    }
                                ],
                                "label": "${captions[2]}",
                                "style": "filtered",
                                "id": "rt_fmd_company_code",
                                "value": "{{memory.rt_fmd_company_code}}"
                            }
                        ]
                    }
                ]
            },
            {
                "type": "ColumnSet",
                "columns": [
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "Input.Date",
                                "id": "rt_ppp_voi_date_from",
                                "label": "${captions[3]}",
                                "value": "${formatDateTime(utcNow(), 'yyyy-MM-dd')}"
                            }
                        ]
                    }
                ],
                "spacing": "Small"
            },
            {
                "type": "ColumnSet",
                "columns": [
                    {
                        "type": "Column",
                        "width": "stretch",
                        "items": [
                            {
                                "type": "Input.Number",
                                "placeholder": "${captions[4]}",
                                "label": "${captions[5]}",
                                "id": "rt_number_of_hints",
                                "value": 100,
                                "min": 1,
                                "max": 100,
                                "isRequired": true,
                                "errorMessage": "${captions[6]}"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "type": "ActionSet",
        "actions": [
            {
                "type": "Action.Submit",
                "title": "${captions[7]}",
                "id": "GenericAction"
            }
        ]
    },
    {
        "type": "Input.Text",
        "id": "AdditionalData",
        "value": "{\"message\": \"${captions[8]}\"}",
        "isVisible": false
    }
]
}

 

Step 3. Define captions for static labels and references.

A white screen with green text AI-generated content may be incorrect.

Input example:

[“Vendor’s Open Items Search”,”Display for vendor: “,”Company Code”,”Open at key date”,”Enter maximum No. of hits”,”Maximum No. of Hits (limited by 100)”,”Number of hits is mandatory”,”Search”,”Search”]

Step 4. Select the Data Source Memory Parameter if your card uses dynamic values from integrations.

A computer screen shot of a computer AI-generated content may be incorrect.

Input example: rt_fmd_co_code

Step 5. Save your entries.

Step 6. Preview the card to confirm everything renders as expected.

Was this helpful?

Yes  No
Related Articles
  • SAP BTP
  • Call SAP System Action
  • Skills Orchestration Action
  • Skybuffer AI PoC Setup
  • Copy the Existing Channel
  • Destination Assignment
Copyright 2022 Skybuffer.com. All Rights Reserved.