React
Embedded Chat
This component is used to embed an AI chat directly into your application or a standalone web page.

Quick Start
import {
InkeepEmbeddedChat,
type InkeepEmbeddedChatProps,
} from "@inkeep/widgets";
const baseSettings: InkeepWidgetBaseSettings = {
apiKey: process.env.INKEEP_INTEGRATION_API_KEY!,
integrationId: process.env.INKEEP_INTEGRATION_ID!,
organizationId: process.env.INKEEP_ORGANIZATION_ID!,
organizationDisplayName: "Inkeep",
primaryBrandColor: "#522FC9",
};
const inkeepEmbeddedChatProps: InkeepEmbeddedChatProps = {
baseSettings: {
...baseSettings,
},
aiChatSettings: {
// ... typeof InkeepAIChatSettings
},
};
export const EmbeddedChat = () => {
return (
<div>
<InkeepEmbeddedChat {...inkeepEmbeddedChatProps} />
</div>
);
};
Settings
InkeepEmbeddedChatProps
This type represents the configuration for the Inkeep embedded chat widget.
Property | Type | Description |
---|---|---|
shouldAutoFocusInput | boolean | Determines whether to autofocus the chat input on load (only pertains to embedded chat). Default true . |
baseSettings | InkeepWidgetBaseSettings | Required. Base settings for any Inkeep widget. See reference here. |
aiChatSettings | InkeepAIChatSettings | AI chat settings for the Inkeep widget. See reference here. |
Example
import type { InkeepEmbeddedChatProps } from "@inkeep/widgets";
import baseSettings from "./baseSettings"; // your base settings typeof InkeepWidgetBaseSettings
const inkeepEmbeddedChatProps: InkeepEmbeddedChatProps = {
shouldAutoFocusInput: true,
baseSettings: {
...baseSettings,
},
aiChatSettings: {
//... typeof InkeepAIChatSettings
},
};