Skip to main content

guidedSellingFlowCreate

BETA: guided selling can still change in ways that break existing integrations. Backwards compatibility is not guaranteed while it is in beta.

Create a guided selling flow with version 1 as a draft and the model key it bills to. Publish it with guidedSellingFlowVersionPublish. Before anything is stored, one call that generates nothing asks the model vendor whether it accepts the key and knows version 1's model.

Possible errors:

  • BAD_REQUEST: a field breaks its rule; extensions.originalError.message names each
  • GUIDED_SELLING_CONTENT_INVALID_ERROR: the content failed validation; extensions.problems lists what
  • GUIDED_SELLING_MODEL_UNAVAILABLE_ERROR: the vendor refused the key or does not know the model; the message gives its reason, extensions.reason the code (LLM_AUTH_FAILED, LLM_MODEL_NOT_FOUND, LLM_BAD_REQUEST). When the vendor cannot answer right now, the flow is created anyway

AUTH: Role=[configuration.OWNER]

guidedSellingFlowCreate(
input: GuidedSellingFlowCreateInput!
): GuidedSellingFlow!

Arguments​

guidedSellingFlowCreate.input ● GuidedSellingFlowCreateInput! non-null input​

Type​

GuidedSellingFlow object​

BETA: guided selling can still change in ways that break existing integrations. Backwards compatibility is not guaranteed while it is in beta.

A guided selling flow, for management. Content lives in versions; the storefront needs only guidedSellingStep and the flow's id.