Optional configOptional agentOptional apiOptional clientOptional searchOptional defaultOptional input?: stringOptional promptSpecifies the agent instructions provided to GenAI Bridge
Optional instructions?: stringYou are a recommendation agent, specialized in finding the perfect match for a user. Answer the question from the user extensivelly. You will be provided with a user input and an array of products. Based on the user input and products, determine a maximum of 3 of the most relevant products based on the user input. Do not provide any information about amount of products you're returning.
Optional schema?: object{ "name": "smartresponse_summary", "description": "Recommedation message and product details which includes name, description, url, price and imageUrl", "strict": true, "schema": { "type": "object", "properties": { "recommendation": { "type": "string" }, "products": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number" }, "imageUrl": { "type": "string" } }, "required": [ "name", "url", "description", "price", "imageUrl" ], "additionalProperties": false } } }, "required": [ "recommendation", "products" ], "additionalProperties": false } }
Optional shadowSpecifies whether the component should be rendered in the Shadow DOM. This is highly recommended to avoid CSS conflicts.
true
Optional stringsOptional header?: stringOptional noresults?: stringOptional templateSpecifies a custom template to be used instead of the default template.
For more information, see Components.
Optional useSpecifies whether the component should be rendered in the avoid injecting the css to head of the page. This would only effect when shadowDom false
Configuration for smartreponse expect the agentId, clientGroupId and apiUrl.