-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
321 lines (321 loc) · 15.2 KB
/
plugin.json
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
{
"id": "generate_powerpoint_slides",
"uuid": "9626f3af-5ef7-4234-aadf-fba896bf3177",
"emoji": "🧩",
"title": "PowerPoint Generator",
"system": false,
"iconURL": "https://custom.typingmind.com/assets/plugins/powerpoint.webp",
"disabled": false,
"syncedAt": null,
"httpAction": {
"id": "8e520cf2-112d-4c06-9c86-026138549ac0",
"url": "{pluginServer}/powerpoint-generator/generate",
"name": "",
"method": "POST",
"hasBody": true,
"hasHeaders": true,
"requestBody": "{\n \"slides\": {slides},\n \"slideConfig\": {\n \"layout\": \"{layout}\",\n \"titleFontSize\": {titleFontSize},\n \"headerFontSize\": {headerFontSize},\n \"bodyFontSize\": {bodyFontSize},\n \"fontFamily\": \"{fontFamily}\",\n \"backgroundColor\": \"{backgroundColor}\",\n \"textColor\": \"{textColor}\",\n \"showFooter\": {showFooter},\n \"showSlideNumber\": {showSlideNumber},\n \"footerBackgroundColor\": \"{footerBackgroundColor}\",\n \"footerText\": \"{footerText}\",\n \"footerTextColor\": \"{footerTextColor}\",\n \"footerFontSize\": {footerFontSize},\n \"showTableBorder\": {showTableBorder},\n \"tableHeaderBackgroundColor\": \"{tableHeaderBackgroundColor}\",\n \"tableHeaderTextColor\": \"{tableHeaderTextColor}\",\n \"tableBorderThickness\": {tableBorderThickness},\n \"tableBorderColor\": \"{tableBorderColor}\",\n \"tableFontSize\": {tableFontSize},\n \"tableTextColor\": \"{tableTextColor}\"\n }\n}",
"requestHeaders": "{\n \"Content-Type\": \"application/json\"\n}",
"resultTransform": {
"engine": "jmes",
"expression": ""
},
"hasResultTransform": false
},
"openaiSpec": {
"name": "generate_powerpoint_slides",
"parameters": {
"type": "object",
"required": [
"slides"
],
"properties": {
"slides": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"title"
],
"properties": {
"type": {
"enum": [
"title_slide",
"content_slide",
"table_slide",
"chart_slide"
],
"type": "string",
"description": "The type of slide, either 'title_slide' (title-only), 'content_slide' (title and content), 'table_slide' (title with tabular content), or 'chart_slide' (title with chart content)."
},
"title": {
"type": "string",
"description": "The title of the slide."
},
"content": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
},
"description": "A row in the table for 'table_slide'. Each row is an array of strings."
},
"description": "The content of the slide. For 'title_slide', this is not required. For 'content_slide', it can be a string (paragraph) or an array of strings (list). For 'table_slide', it is an array of rows, where each row is an array of strings."
},
"subtitle": {
"type": "string",
"description": "The subtitle of the slide, which provides additional information to support the title. Only title_slide has the subtitle."
},
"chartContent": {
"type": "object",
"required": [
"type",
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the chart series."
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "The labels for the chart (e.g., categories, time periods)."
},
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "The values for each label in the chart."
}
}
},
"description": "The chart data. Depending on the type, this can be an array of labels and values."
},
"type": {
"enum": [
"pie",
"bar",
"line",
"doughnut"
],
"type": "string",
"description": "The type of chart, either 'pie', 'doughnut', 'bar', or 'line'."
}
},
"description": "The chart data for 'chart_slide'. This includes various types of chart data such as pie charts, doughnut charts, bar charts, and line charts."
}
}
},
"description": "A list of slides, where each slide includes its type, title, and content."
}
}
},
"description": "Generate a PowerPoint file and return the URL for downloading it. If the download url is not present in the response, inform the user that the PowerPoint file could not be generated. Prompt the user to verify that the correct plugin server URL is being used."
},
"outputType": "respond_to_ai",
"oauthConfig": null,
"userSettings": [
{
"name": "pluginServer",
"label": "Plugin Server",
"required": true,
"description": "The URL of the plugin server. For more details, refer to the documentation: https://docs.typingmind.com/plugins/plugins-server",
"placeholder": "https://...."
},
{
"name": "layout",
"type": "enum",
"label": "Slide Layout",
"values": [
"LAYOUT_WIDE",
"LAYOUT_16x9",
"LAYOUT_16x10",
"LAYOUT_4x3"
],
"description": "Default: LAYOUT_WIDE. Options: LAYOUT_16x9, LAYOUT_16x10, LAYOUT_4x3."
},
{
"name": "titleFontSize",
"type": "number",
"label": "Title Font Size",
"description": "Font size for the title slide to emphasize the main topic, default is 52 pt.",
"placeholder": "52"
},
{
"name": "headerFontSize",
"type": "number",
"label": "Header Font Size",
"description": "Font size for headers in content slides, default is 32 pt.",
"placeholder": "32"
},
{
"name": "bodyFontSize",
"type": "number",
"label": "Body Font Size",
"description": "Font size for main content text, default is 24 pt.",
"placeholder": "24"
},
{
"name": "fontFamily",
"type": "enum",
"label": "Font Family",
"values": [
"Calibri",
"Arial",
"Courier New",
"Georgia",
"Helvetica",
"Impact",
"Lucida Console",
"Tahoma",
"Times New Roman",
"Trebuchet MS",
"Verdana",
"Comic Sans MS",
"Franklin Gothic Medium",
"Century Gothic",
"Gill Sans",
"Garamond",
"Palatino Linotype",
"Segoe UI",
"Book Antiqua",
"Symbol",
"Monospace",
"Webdings",
"Wingdings"
],
"description": "Default font family for the slide. default is Calibri",
"placeholder": "Calibri"
},
{
"name": "backgroundColor",
"type": "text",
"label": "Background Color",
"description": "Slide background color in hex format, default is #FFFFFF.",
"placeholder": "#FFFFFF"
},
{
"name": "textColor",
"type": "text",
"label": "Text Color",
"description": "Text color in hex format, default is #000000.",
"placeholder": "#000000"
},
{
"name": "showFooter",
"type": "enum",
"label": "Show Footer",
"values": [
"false",
"true"
],
"description": "Toggle to display the footer, default is false."
},
{
"name": "showSlideNumber",
"type": "enum",
"label": "Show Slide Number",
"values": [
"false",
"true"
],
"description": "Toggle to display slide numbers, default is false."
},
{
"name": "footerBackgroundColor",
"type": "text",
"label": "Footer Background Color",
"description": "Footer background color in hex format, default is #003B75.",
"placeholder": "#003B75 - Dark Blue"
},
{
"name": "footerText",
"type": "text",
"label": "Footer Text",
"description": "Footer text content, default is 'footer text'.",
"placeholder": "Ex. TypingMind Custom"
},
{
"name": "footerTextColor",
"type": "text",
"label": "Footer Text Color",
"description": "Footer text color in hex format, default is #FFFFFF.",
"placeholder": "#FFFFFF"
},
{
"name": "footerFontSize",
"type": "number",
"label": "Footer Font Size",
"description": "Font size for footer text, default is 10 pt.",
"placeholder": "10"
},
{
"name": "showTableBorder",
"type": "enum",
"label": "Show Table Border",
"values": [
"true",
"false"
],
"description": "Toggle to display table borders, default is true."
},
{
"name": "tableHeaderBackgroundColor",
"type": "text",
"label": "Table Header Background Color",
"description": "Background color for table headers in hex format, default is #003B75.",
"placeholder": "#003B75 - Dark Blue"
},
{
"name": "tableHeaderTextColor",
"type": "text",
"label": "Table Header Text Color",
"description": "Text color for table headers in hex format, default is #FFFFFF.",
"placeholder": "#FFFFFF"
},
{
"name": "tableBorderThickness",
"type": "number",
"label": "Table Border Thickness",
"description": "Thickness of table borders in points, default is 1 pt.",
"placeholder": "1 pt"
},
{
"name": "tableBorderColor",
"type": "text",
"label": "Table Border Color",
"description": "Table border color in hex format, default is #000000.",
"placeholder": "#000000"
},
{
"name": "tableFontSize",
"type": "number",
"label": "Table Font Size",
"description": "Font size for text inside tables, default is 14 pt.",
"placeholder": "14 pt"
},
{
"name": "tableTextColor",
"type": "text",
"label": "Table Text Color",
"description": "Text color for table content in hex format, default is #000000.",
"placeholder": "#000000"
}
],
"isServerPlugin": false,
"overviewMarkdown": "# **PowerPoint Generator**\n\nThis plugin enables users to generate PowerPoint slides quickly and efficiently.\n\n### 🎯 **It Supports** \n- Multiple **slide layouts** to fit different presentation needs.\n- **Tables** and various **charts** (pie, bar, line, doughnut).\n- Options to **show/hide footers** with customizable attributes. \n- Ability to **customize basic slide attributes**, including: \n - Font family \n - Font size \n - Background color\n\n### 📝 **Note:**\n- A plugin server must be set up to use this feature. Follow the detailed guide to set up a plugin server on Render: [How to Deploy Plugins Server on Render](https://docs.typingmind.com/plugins/plugins-server/how-to-deploy-plugins-server-on-render)\n- The generated PowerPoint files will be automatically removed after one hour.\n- The plugin does not yet support image embedding in PowerPoint files.\n\n## **Example Usage** \n> Create a presentation introducing the AI industry. Cover: \n> - Its definition, history, key technologies, current trends, and major applications across sectors like healthcare, finance, and transportation. \n> - Ethical challenges, future impacts, and opportunities for businesses and individuals to engage with AI.",
"turnedOnByDefault": false,
"authenticationType": "AUTH_TYPE_NONE",
"implementationType": "http"
}