File size: 6,818 Bytes
a222658
 
 
 
6425363
 
a222658
 
 
 
 
 
 
 
 
 
 
a9a3550
a222658
901f984
 
 
 
2ee34e0
 
 
 
a222658
 
 
 
 
 
 
1b59ee1
 
 
 
f86003d
 
 
 
3fa47c1
 
 
 
a222658
 
 
 
 
 
 
f86003d
 
 
 
 
 
 
 
3fa47c1
 
 
 
 
 
 
 
1b59ee1
 
 
 
 
 
 
 
6425363
 
 
 
a222658
 
 
 
02813bf
 
 
 
a9a3550
 
 
 
901f984
 
 
 
2ee34e0
 
 
 
a222658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
901f984
 
2ee34e0
a222658
 
 
 
 
1b59ee1
3fa47c1
a222658
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
  "version": "1.0.0",
  "agents": {
    "researcher": {
      "system_prompt": "You are a professional market researcher. Use web search to find trends, competitor data, and customer insights. Use analyze_product_trends to find profitable products.",
      "tools": ["web_search", "summarize_content", "analyze_product_trends"]
    },
    "operations_lead": {
      "system_prompt": "You are the COO of this dropshipping business. You manage databases, coordinate agents, and make strategic decisions based on data.",
      "tools": ["get_airtable_records", "fetch_hubspot_contacts", "sql_query_db"]
    },
    "customer_service": {
      "system_prompt": "You are a helpful customer support agent. You check order statuses, look up customer info in HubSpot, and draft empathetic responses.",
      "tools": ["get_order_status", "get_hubspot_contact", "generate_email_draft"]
    },
    "shopify_manager": {
      "system_prompt": "You are the Shopify store manager. You oversee inventory, update product details, manage orders, and ensure smooth store operations. Use your tools to maintain accurate records.",
      "tools": ["get_order_status", "update_inventory", "list_products", "ucp_get_order_details", "get_product_details"]
    },
    "fulfillment_agent": {
      "system_prompt": "You are the fulfillment agent. You process Shopify orders, create fulfillment records, and log activities in Airtable.",
      "tools": ["fulfill_shopify_order"]
    },
    "product_builder": {
      "system_prompt": "You are the product builder agent. You create new products in the Shopify store, manage descriptions, and set pricing.",
      "tools": ["create_shopify_product"]
    },
    "creative_studio": {
      "system_prompt": "You are a creative director. You generate marketing images, manage document conversions (PDF/EPUB), and design Storefront Web Component layouts.",
      "tools": ["generate_image", "convert_to_pdf", "convert_to_epub", "render_storefront_component"]
    },
    "seo_specialist": {
      "system_prompt": "You are an SEO expert. You analyze topics, identify high-volume keywords, and inject them into content.",
      "tools": ["web_search", "generate_seo_content"]
    },
    "email_secretary": {
      "system_prompt": "You are the email secretary for brett@brettapps.com. You manage the inbox, prioritize messages, and draft responses.",
      "tools": ["list_emails", "send_email"]
    },
    "auditor_agent": {
      "system_prompt": "You are the internal auditor. You review agent tool executions, verify margin constraints, and flag non-compliant actions.",
      "tools": ["check_margin", "log_audit_event"]
    },
    "supplier_evaluator": {
      "system_prompt": "You are the supplier evaluator. You critically analyze potential dropshipping suppliers against strict criteria (API support, shipping speed, return policy, blind dropshipping).",
      "tools": ["evaluate_supplier", "log_evaluation"]
    }
  },
  "tool_definitions": {
    "web_search": {
      "description": "Searches the live web for up-to-date information.",
      "parameters": {"topic": "string", "max_results": "integer"}
    },
    "check_margin": {
      "description": "Checks if the product margin exceeds the minimum required threshold.",
      "parameters": {"price": "number", "cost": "number", "threshold": "number"}
    },
    "log_audit_event": {
      "description": "Logs an audit event for a transaction.",
      "parameters": {"session_id": "integer", "agent_name": "string", "tool_name": "string", "is_compliant": "boolean"}
    },
    "evaluate_supplier": {
      "description": "Evaluates supplier data against dropshipping criteria.",
      "parameters": {"supplier_data": "string"}
    },
    "log_evaluation": {
      "description": "Logs a supplier evaluation to Airtable.",
      "parameters": {"supplier_name": "string", "evaluation": "string"}
    },
    "list_emails": {
      "description": "Lists recent emails from the inbox.",
      "parameters": {"count": "integer"}
    },
    "send_email": {
      "description": "Sends an email to a recipient.",
      "parameters": {"to": "string", "subject": "string", "body": "string"}
    },
    "analyze_product_trends": {
      "description": "Analyzes a category to identify high-margin, top-selling products.",
      "parameters": {"category": "string"}
    },
    "get_order_status": {
      "description": "Retrieves Shopify order status by order ID.",
      "parameters": {"order_id": "string"}
    },
    "ucp_get_order_details": {
      "description": "Retrieves order details using UCP.",
      "parameters": {"order_id": "string", "merchant_domain": "string"}
    },
    "get_product_details": {
      "description": "Retrieves details of a Shopify product by handle.",
      "parameters": {"handle": "string"}
    },
    "fulfill_shopify_order": {
      "description": "Marks a Shopify order as fulfilled and logs it to Airtable.",
      "parameters": {"order_id": "string", "tracking_number": "string"}
    },
    "create_shopify_product": {
      "description": "Creates a new Shopify product.",
      "parameters": {"title": "string", "body_html": "string", "vendor": "string", "product_type": "string", "tags": "string", "price": "string"}
    },
    "update_inventory": {
      "description": "Updates inventory level for a product variant.",
      "parameters": {"variant_id": "string", "quantity": "integer"}
    },
    "list_products": {
      "description": "Lists store products.",
      "parameters": {"limit": "integer"}
    },
    "get_hubspot_contact": {
      "description": "Finds a contact in HubSpot by email.",
      "parameters": {"email": "string"}
    },
    "generate_image": {
      "description": "Generates an image via Z-Image-Turbo.",
      "parameters": {"prompt": "string", "overlay_text": "string"}
    },
    "render_storefront_component": {
      "description": "Renders a Shopify Storefront Web Component.",
      "parameters": {"component_type": "string", "product_handle": "string"}
    },
    "generate_seo_content": {
      "description": "Synthesizes research and injects keywords.",
      "parameters": {"topic": "string", "keywords": "list"}
    }
  },
  "routing_logic": {
    "default_agent": "customer_service",
    "intent_mapping": {
      "order": "customer_service",
      "shipping": "customer_service",
      "inventory": "shopify_manager",
      "product": "shopify_manager",
      "fulfill": "fulfillment_agent",
      "fulfillment": "fulfillment_agent",
      "create": "product_builder",
      "research": "researcher",
      "trend": "researcher",
      "design": "creative_studio",
      "image": "creative_studio",
      "seo": "seo_specialist",
      "email": "email_secretary",
      "evaluate": "supplier_evaluator",
      "database": "operations_lead"
    }
  }
}