Queries

playlistPromptAgent

Deprecated: EXPERIMENTAL: This feature can change at any time and is not meant to be used in any production environment.

Playlist prompt agent. Single-call variant with web search and capped thinking; researches the business and writes a custom two-paragraph prompt for Soundtrack's AI playlist generator, plus a heading describing the business and a display title and description for the playlist.

Possible errors:

  • UNAUTHENTICATED: Request is missing valid Soundtrack credentials or a valid captcha token.

Arguments

captcha String

reCAPTCHA response token used to authenticate the request when no Soundtrack Authorization header is sent. The token is verified with Google, so it must have been issued within the last two minutes for the storefront's site key when the platform in x-user-agent contains storefront (and not business), and for the business app's site key otherwise, including when x-user-agent is not sent. A token can be reused for the fields of one operation but should not be reused across requests. When omitted, the request must be authenticated via Soundtrack credentials (Authorization header and x-user-agent) instead.

input AgentInput!
language String

BCP 47 language tag for the returned copy, e.g. 'sv-SE'. Defaults to English. Values that are not a valid tag are ignored.

Type

PlaylistPromptAgentResult!