-
Notifications
You must be signed in to change notification settings - Fork 16
/
lexi-shopping-assistant-chatgpt-plugin.iamnazzty.repl.co.yaml
80 lines (80 loc) · 3.23 KB
/
lexi-shopping-assistant-chatgpt-plugin.iamnazzty.repl.co.yaml
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
openapi: 3.0.1
info:
title: Amazon Shopping Assistant
description: A plugin that recommends an Amazon product based on a user request and also provides an explanation of why that product was recommended.
version: 'v1'
servers:
- url: https://lexi-shopping-assistant-chatgpt-plugin.iamnazzty.repl.co
paths:
/recommendation:
post:
operationId: getProductRecommendation
summary: Get product recommendation based on user input with an explanation of why the product was recommended.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
userMessage:
type: string
description: The message sent by user to ChatGPT
required: true
searchPhrase:
type: string
description: The search phrase extracted from the user message for finding products on Amazon
required: true
embeddingId:
type: string
description: A unique message identifier
required: true
language:
type: string
description: The ISO-639-1 language code used for the request. For example, en, hi, or ja.
required: true
country:
type: string
description: The ISO-3166-1 country code for which the search results should be localized. For example, US, IN or EG.
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: The title of the recommended product
asin:
type: string
description: The Amazon Standard Identification Number of the product
link:
type: string
description: The URL to view the product on Amazon with the affiliate tag
brand:
type: string
description: The brand of the product
image_link:
type: string
description: Link to the main image of the product
rating:
type: number
description: The average rating of the product
ratings_total:
type: integer
description: The total number of ratings for the product
price:
type: string
description: The price of the product
delivery:
type: string
description: The delivery information for the product
similarity:
type: number
description: The similarity score between the user input and the recommended product
explanation:
type: string
description: An explanation of why the product is recommended