searchspring_code_generator
Generate platform-specific code examples for Searchspring APIs including search, autocomplete, and tracking. Simplify integration with Shopify, BigCommerce, Magento2, or custom platforms using ready-to-use code snippets.
Instructions
Generate implementation code for any Searchspring API with platform-specific examples
Input Schema
Name | Required | Description | Default |
---|---|---|---|
api | Yes | The Searchspring API to generate code for | |
eventType | No | Type of tracking event (for tracking/beacon APIs only) | |
platform | Yes | Platform or language for code generation | |
useCase | No | Specific use case or scenario for the code (optional) |
Input Schema (JSON Schema)
{
"properties": {
"api": {
"description": "The Searchspring API to generate code for",
"enum": [
"search",
"autocomplete",
"suggest",
"trending",
"recommendations",
"finder",
"beacon",
"bulk-index",
"tracking"
],
"type": "string"
},
"eventType": {
"description": "Type of tracking event (for tracking/beacon APIs only)",
"enum": [
"product",
"cart",
"sale",
"search-click",
"impression"
],
"type": "string"
},
"platform": {
"description": "Platform or language for code generation",
"enum": [
"shopify",
"bigcommerce",
"magento2",
"javascript",
"php",
"python",
"custom"
],
"type": "string"
},
"useCase": {
"description": "Specific use case or scenario for the code (optional)",
"type": "string"
}
},
"required": [
"api",
"platform"
],
"type": "object"
}