Skip to content

Commit b2e00dc

Browse files
andvramarc-on-githubMarc Hochleutner
authored
Peltarion (microsoft#419)
* [timeghost] usability improvements (microsoft#402) * [timeghost] Certified connector publishing * add x-function-key * add x-function key * usability improvements * add policyTemplateInstances * publisher and stackOwner added * validator fixes * validator fixes * contact and x-ms-connector-metadata added * x-ms-connector-metadata Categories changed * remove invalid characters * remove umlauts Co-authored-by: Marc Hochleutner <marc.hochleutner@sharepoint-template.com> * Initial commit * Updated description * Update apiDefinition.swagger.json Co-authored-by: Marc <mhochleutner@koellisch.de> Co-authored-by: Marc Hochleutner <marc.hochleutner@sharepoint-template.com>
1 parent c4919dc commit b2e00dc

File tree

5 files changed

+176
-2
lines changed

5 files changed

+176
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Peltarion Connector
2+
Add artificial intelligence to your apps! With Peltarion’s plugin, it has never been easier to create smart applications.
3+
4+
With this Peltarion integration, you can build and deploy AI models, and through the API connect to your Bubble app.
5+
6+
Some cool things that you can do, amongst others. Use the Peltarion plugin to build an app that:
7+
8+
- Can tell the difference between music genres and classify them accordingly ([link](https://bit.ly/34K98Sm))
9+
- Understands the semantic meaning of words and use it to classify movie reviews or customer support messages ([link](https://bit.ly/3jrkZsP))
10+
- Label images as per the clothing category they belong to (say in an e-commerce catalog) ([link](https://bit.ly/3lqyiLD))
11+
- Predict the value and price of houses you’re looking to buy ([link](https://bit.ly/3b6CTht))
12+
13+
## Getting started
14+
15+
1. Sign up for free on the Peltarion Platform ([link](https://bit.ly/3llPmTf))
16+
1. Build and train your AI model on the Peltarion platform
17+
1. Add the Peltarion plugin to your Bubble app
18+
1. Connect the Peltarion action to your workflow
19+
20+
The connector only support one operation, called *callapi*. To use the connector and store the value into a variable *res*, you can call the API like this:
21+
22+
```
23+
ClearCollect(dd, { <YOUR-INPUT-PARAM>: TextInput1.Text});
24+
Set(jdata,JSON(dd,JSONFormat.IncludeBinaryData));
25+
Set(res, PeltarionConnectorTest.callapi("https://a.gcp-eu-west-1.platform.peltarion.com/deployment/<YOUR-DPLOYMENT-ID>/forward","<YOUR-TOKEN>",jdata))
26+
```
27+
28+
The *res* is an object with three values:
29+
30+
- *key* is the name of the predicted class. For regression problems, the *key* is always "value"
31+
- *val* is the probability of the class
32+
- *errorMessage* holds the error message, if any
33+
34+
Your URL, token and input name is found on the Deployment view on the Peltarion Platform. See screenshot below.
35+
![URL, token and input](screenshot.png)
36+
37+
38+
39+
For information on how to build and train an AI model on the Peltarion platform, visit our knowledge center (link: https://bit.ly/3gC6XCN)
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Peltarion",
5+
"description": "Using this connector, you can connect your your app with your Peltarion models. Just add the connector and enter URL and token from the Peltarion platform, and send your data.",
6+
"version": "1.0",
7+
"contact": {
8+
"name": "Peltarion",
9+
"url": "https://peltarion.com/",
10+
"email": "contact@peltarion.com"
11+
}
12+
},
13+
"host": "peltarionforwardtest.azurewebsites.net",
14+
"basePath": "/",
15+
"schemes": [
16+
"https"
17+
],
18+
"consumes": [],
19+
"produces": [],
20+
"paths": {
21+
"/api/forwardcall": {
22+
"post": {
23+
"responses": {
24+
"200": {
25+
"description": "default",
26+
"schema": {
27+
"type": "object",
28+
"properties": {
29+
"key": {
30+
"type": "string",
31+
"description": "key"
32+
},
33+
"val": {
34+
"type": "string",
35+
"description": "val"
36+
},
37+
"errorMessage": {
38+
"type": "string",
39+
"description": "errorMessage"
40+
}
41+
}
42+
}
43+
}
44+
},
45+
"summary": "Call Peltarion API",
46+
"description": "This function calls your model deployed on the Peltarion Platform.",
47+
"operationId": "callapi",
48+
"x-ms-visibility": "important",
49+
"parameters": [
50+
{
51+
"name": "code",
52+
"in": "query",
53+
"required": true,
54+
"type": "string",
55+
"default": "FHWJvOJnrrBz8v7DOWoABLS1K2e9Im6q7YalAthQMGkqTa57jDYm/w==",
56+
"x-ms-visibility": "internal",
57+
"description": "Authentication for the API proxy",
58+
"x-ms-summary": "This is a key required by the API proxy"
59+
},
60+
{
61+
"name": "peltarionurl",
62+
"in": "header",
63+
"required": true,
64+
"type": "string",
65+
"x-ms-visibility": "important",
66+
"description": "Peltarion URL",
67+
"x-ms-summary": "URL to identify your Peltarion API"
68+
},
69+
{
70+
"name": "peltariontoken",
71+
"in": "header",
72+
"required": true,
73+
"type": "string",
74+
"x-ms-visibility": "important",
75+
"description": "Peltarion token",
76+
"x-ms-summary": "Token to identify your Peltarion API"
77+
},
78+
{
79+
"name": "peltarionbody",
80+
"in": "header",
81+
"required": true,
82+
"type": "string",
83+
"x-ms-visibility": "important",
84+
"description": "Peltarion body",
85+
"x-ms-summary": "Call body in JSON format."
86+
}
87+
]
88+
}
89+
}
90+
},
91+
"x-ms-connector-metadata": [
92+
{
93+
"propertyName": "Website",
94+
"propertyValue": "https://peltarion.com/"
95+
},
96+
{
97+
"propertyName": "Privacy policy",
98+
"propertyValue": "https://peltarion.com/privacy-policies"
99+
},
100+
{
101+
"propertyName": "Categories",
102+
"propertyValue": "AI;Data"
103+
}
104+
],
105+
"definitions": {},
106+
"parameters": {},
107+
"responses": {},
108+
"securityDefinitions": {},
109+
"security": [],
110+
"tags": []
111+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"connectionParameters": {},
4+
"iconBrandColor": "#061b22",
5+
"capabilities": [],
6+
"publisher": "Peltarion",
7+
"stackOwner": "Peltarion",
8+
"policyTemplateInstances": [
9+
{
10+
"templateId": "setheader",
11+
"title": "Content-type header",
12+
"parameters": {
13+
"x-ms-apimTemplateParameter.name": "content-type",
14+
"x-ms-apimTemplateParameter.value": "application/json",
15+
"x-ms-apimTemplateParameter.existsAction": "override",
16+
"x-ms-apimTemplate-policySection": "Request",
17+
"x-ms-apimTemplate-operationName": [
18+
"callapi"
19+
]
20+
}
21+
}
22+
]
23+
}
24+
}
172 KB
Loading

certified-connectors/timeghost/apiProperties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
}
8585
}
8686
],
87-
"publisher": "Koellisch Gesellschaft für Prozessmanagement mbH",
88-
"stackOwner": "Koellisch Gesellschaft für Prozessmanagement mbH"
87+
"publisher": "Koellisch Gesellschaft fuer Prozessmanagement mbH",
88+
"stackOwner": "Koellisch Gesellschaft fuer Prozessmanagement mbH"
8989
}
9090
}

0 commit comments

Comments
 (0)