Skip to main content

Components

@search-engine-sdk/react exports SourcingChat and the pieces it is built from. Standalone components render inside SourcingTheme. The host still owns search state, sorting, streaming, and the dialog's drafts, and passes the rows in. SourcingChat keeps its own card list for an embed.

slots replaces a view and keeps the same session. Slot props are Header, Transcript, Message, Progress, QuickReplies, Composer, Filters, Candidates, Empty, and Error.

Component
SourcingChatDrop-in sourcing chat. Pass chatId for an existing chat, or leave it empty to create one on the first message. Replace slots to render the same session with your own pieces.
SourcingProviderProvides the SourcingClient to SourcingChat and useSourcingClient().
useSourcingClientThe client from the nearest SourcingProvider. Throws when that provider is missing.
SourcingThemeSets light, dark, or system colors for any components placed inside.
ChatLayoutThe chat shell. It sets the theme and lays out the thread and the side.
ChatBodyThe row that holds the thread and the side.
ChatThreadThe conversation column.
ChatSideThe results column.
ChatHeaderThe chat title and status. An empty title reads New search.
ChatStatusReady, Working, or Queued, plus the data source.
TranscriptThe message log. Shows Earlier messages when older messages are already loaded.
LoadEarlierThe button that reveals the previous window of messages.
MessageBubbleOne transcript row. A generating answer renders ProgressList. A filter update renders a system line.
UserMessageA message from the signed-in user.
BotMessageA message from the assistant.
YouNoteThe user's line in the workbench transcript.
BotNoteThe assistant's line, with optional answer buttons.
ActionNoteA transcript row with a badge.
ThoughtNoteA muted line in the transcript.
CopilotEmptyThe empty line in the copilot column.
ComposerThe message field. Omit value and the field keeps its own draft.
PromptLineThe preamble and text above a set of replies.
QuickRepliesThe prompt and every reply group. Renders nothing when both are empty.
ReplyGroupOne question and its options. multi reads Select one or more. Anything else reads Select one.
ProgressListThe steps of a turn that is still being written.
ProgressStepItemOne titled step inside a progress list.
EmptyStateThe empty conversation. Loading and the first-search prompt use different copy.
ErrorBannerThe alert under the transcript.
QueueListMessages waiting to be sent. Renders nothing when the list is empty.
ArchiveThreadThe original conversation kept beside an editable search.
FilterSummaryThe built-in filters view. It summarizes the current requirements. A custom editor calls loadForms() and onSubmit instead.
FilterChipOne requirement label.
CandidateListThe card list for one page, with a pager when the page is not the whole result.
CandidateCardOne person: name, headline, company, location, and up to eight skills.
CandidateMetaThe company after the headline. Renders nothing when the candidate has no company.
SkillListA list of skill names. Renders nothing when skills is empty.
ReviewButtonsLike and dislike for one candidate.
PagerPrevious and next for a candidate page.
ResultsBoardThe sortable results table. The host owns sorting and passes the rows in.
ProfilePanelThe candidate beside the table. The host passes the profile it already loaded.
CriteriaBarThe sentence above the results, with one chip per condition and Adjust.
DescribeBoxThe home-screen box: a heading, the request, and Search.
WorkbenchFrameThe fixed workbench frame: product, tabs, the open request, and sign-out.
CopilotFrameThe copilot column: a hint, a scrolling transcript, and a footer.
HistoryListA paged list of saved rows. It defaults to conversations. Pass pendingLabel and listLabel for another list, such as saved searches.
SignInCardThe sign-in card. The host owns the form state and passes the field props through.
AdjustFrameThe adjust dialog shell. The host fills the header, cards, and footer.
RungOptionOne radio in an adjust card: the rung name, its description, and the count.
PresenceRowThe tags under a request. They stay put; only the highlight moves.
PlanMeterA sliding bar and a short log while a plan is derived. The last lines fade out.