forked from sisbell/chatgpt-plugin-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroboad.herokuapp.com.yaml
171 lines (170 loc) · 6.46 KB
/
roboad.herokuapp.com.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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"openapi": "3.0.1",
"info": {
"title": "RoboAd - Your AI Ad Assistance",
"description": "An AI-powered ad creation tool that helps you create Google Ads based on the content of your website.",
"version": "0.1.0"
},
"servers": [
{
"url": "https://roboad.herokuapp.com"
}
],
"paths": {
"/analyze-url": {
"post": {
"summary": "Analyze a URL",
"description": "This endpoint will analyze a URL and return the brand name, product/service name, call to action, Languages and unique selling propositions.",
"operationId": "analyzeUrl",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to analyze. This is the main and only required input from the user."
}
},
"required": ["url"]
}
}
}
},
"responses": {
"200": {
"description": "The analysis of the URL is successful. The response contains the brand name, product/service name, call to action, Languages and unique selling propositions. This information will be used by create-ads endpoint to create the ad.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"brand_name": {
"type": "string",
"description": "The brand name derived from the content at the URL. This is not part of the ad content but can be used to create the ad."
},
"language": {
"type": "array",
"description": "The languages of the website, sorted by dominance. This is not part of the ad content but can be used to create the ad.",
"items": {
"type": "string"
},
},
"product_name": {
"type": "array",
"items": {
"type": "string"
},
"description": "The product/service names derived from the content. This is not part of the ad content but can be used to create the ad."
},
"call_to_action": {
"type": "array",
"items": {
"type": "string"
},
"description": "Suggested call to actions based on the content of the url. This is not part of the ad content but can be used to create the ad."
},
"unique_selling_proposition": {
"type": "array",
"items": {
"type": "string"
},
"description": "The unique selling propositions derived from the URL content. This is not part of the ad content but can be used to create the ad."
}
}
}
}
}
}
}
}
},
"/create-ads": {
"post": {
"summary": "Return content for creating Google Ads",
"description": "Returns content for creating Google Ads. Display each section as bullet point and separate them with a heading in this order: Brand Name, Product/Service Name, Call to Action, Unique Selling Proposition.",
"operationId": "createAds",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"brand_name": {
"type": "string",
"description": "The brand name."
},
"language": {
"type": "array",
"description": "The languages of the website, sorted by dominance.",
"items": {
"type": "string"
},
},
"product_name": {
"type": "array",
"description": "The product/service names.",
"items": {
"type": "string"
},
},
"call_to_action": {
"type": "array",
"items": {
"type": "string"
},
"description": "Call to actions."
},
"unique_selling_proposition": {
"type": "array",
"items": {
"type": "string"
},
"description": "Unique selling propositions."
}
},
"required": ["brand_name", "product_name", "call_to_action", "unique_selling_proposition"]
}
}
}
},
"responses": {
"200": {
"description": "Google Ads data is created successfully.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"headlines": {
"type": "array",
"items": {
"type": "string"
},
"description": "The headlines for the Google Ads. Show them as bullet points. Each headings need to be less than 30 characters"
},
"descriptions": {
"type": "array",
"items": {
"type": "string"
},
"description": "The descriptions for the Google Ads. Each item should be shown as a bullet point."
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "The paths for the Google Ads. Show the item as bullet point."
}
}
}
}
}
}
}
}
}
}
}