<a href="/wiki/display/CPDesign/AI+Quick+Reply">AI Quick Reply</a>

Component Owner: BTP

Designer Responsible: Milanov, Kalin

Specification Status: IN REVIEW

Table of Contents

Overview

Look and Feel

&#x3C;p&#x3E;&#x3C;div&#x3E; &#x3C;div&#x3E;Morning Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Evening Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;HCB&#x3C;/div&#x3E; &#x3C;div&#x3E;HCW&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-quick-reply/media1_16288b39b8d6bc073a3ac44edee627a5919e6db03.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_16288b39b8d6bc073a3ac44edee627a5919e6db03.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_16288b39b8d6bc073a3ac44edee627a5919e6db03.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media%5C_16288b39b8d6bc073a3ac44edee627a5919e6db03.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media_16288b39b8d6bc073a3ac44edee627a5919e6db03.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;430&#x22; height=&#x22;740&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-quick-reply/media1_141c145af48c164b467972d8f9ff574a52da16e04.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_141c145af48c164b467972d8f9ff574a52da16e04.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_141c145af48c164b467972d8f9ff574a52da16e04.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media%5C_141c145af48c164b467972d8f9ff574a52da16e04.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media_141c145af48c164b467972d8f9ff574a52da16e04.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;430&#x22; height=&#x22;740&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-quick-reply/media1_1e9d3930b5f9acb142af342d4f8010e933cbec7c6.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1e9d3930b5f9acb142af342d4f8010e933cbec7c6.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1e9d3930b5f9acb142af342d4f8010e933cbec7c6.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media%5C_1e9d3930b5f9acb142af342d4f8010e933cbec7c6.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media_1e9d3930b5f9acb142af342d4f8010e933cbec7c6.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;430&#x22; height=&#x22;740&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-quick-reply/media1_17eeacdaa9e436605d7c9610b8300271aa7acd67f.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_17eeacdaa9e436605d7c9610b8300271aa7acd67f.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_17eeacdaa9e436605d7c9610b8300271aa7acd67f.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media%5C_17eeacdaa9e436605d7c9610b8300271aa7acd67f.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-quick-reply/media_17eeacdaa9e436605d7c9610b8300271aa7acd67f.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;430&#x22; height=&#x22;740&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;/div&#x3E;&#x3C;/p&#x3E;

Anatomy

<div> <div></div> <div>Element</div> <div>All Horizon Themes</div> </div> <div> <div>A</div> <div>Visual Button</div> <div>padding: 0.3125rem 0.625rem; (results in 26px height)<br>border-radius: 0.375rem;<br>border-width: 0.0625rem;<br>border-style: solid;</div> </div> <div> <div>B</div> <div>Text</div> <div>font-family: var(--sapFontFamily);<br>font-size: var(--sapFontSize);</div> </div>

Desktop Specification (Compact Mode)

The visual design specification for the Quick Reply button is identical to the Secondary AI Button specifications.

Interaction States

Tablet Specification (Cozy Mode)

<div> <div></div> <div>Element</div> <div>All Horizon Themes</div> </div> <div> <div>A</div> <div>Visual Button</div> <div>padding: 0.625rem 0.75rem;</div> </div> <div> <div>B</div> <div>Text</div> <div>No deltas</div> </div>

Phone Specification (Cozy Mode)

Identical to tablet specification.

Quick Reply Bar

Overview

Anatomy (Desktop and Mobile)

The Quick Reply Bar is the container that holds the AI Quick Prompts. The items are arranged horizontally and when there is not enough horizontal space, they wrap into multiple lines.

<div> <div></div> <div>Desktop</div> <div>Mobile</div> </div> <div> <div><strong>Vertical Spacing</strong></div> <div>0.375rem</div> <div>0.5rem</div> </div> <div> <div><strong>Horizontal Spacing</strong></div> <div>0.375rem</div> <div>0.5rem</div> </div>

Keyboard Handling

The keyboard handling for the AI Chat Bubble is based on the keyboard handling of the Button and Toolbar components. Refer to Fiori Keyboard Interaction for full specifications about each of these components.

Keyboard Interaction

Screen Reader

The screen reader for the AI Quick Reply Bar is based on the screen reader of the Button and Toolbar. Refer to Fiori Screen Reader Specification for full specifications.

Development Requirement

The accessibility team recommends to implement this list of quick replies as an unordered list.

Sample Code Reference

<ul>                      <li>                       <button>Open weather.com</button>                      </li>                     </ul>