Skip to content

WebExperience

Source: src/AWS/QBusiness/WebExperience.ts

An Amazon Q Business web experience — the hosted chat UI end users open to converse with an application.

Basic Web Experience

import * as AWS from "alchemy/AWS";
const web = yield* AWS.QBusiness.WebExperience("Chat", {
applicationId: app.applicationId,
title: "Company Assistant",
welcomeMessage: "Ask me anything about our docs.",
});

Embeddable Web Experience

const web = yield* AWS.QBusiness.WebExperience("Chat", {
applicationId: app.applicationId,
origins: ["https://intranet.example.com"],
samplePromptsControlMode: "ENABLED",
});