Skip to content

Instantly share code, notes, and snippets.

@KrustyHack
Created January 11, 2024 21:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KrustyHack/40195d12923d38d76f04993103c157db to your computer and use it in GitHub Desktop.
Save KrustyHack/40195d12923d38d76f04993103c157db to your computer and use it in GitHub Desktop.
Raindrop.io x Make x ChatGPT
{
"name": "Integration Raindrop.io, OpenAI (ChatGPT, Whisper, DALL-E)",
"flow": [
{
"id": 1,
"module": "raindrop-io:watchBookmarks",
"version": 1,
"parameters": {
"__IMTCONN__": 2363503,
"collection": {
"path": "all"
},
"search": {
"word": "",
"tags": [],
"important": false,
"broken": false,
"file": false,
"type": "",
"link": ""
},
"limit": 2
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "Raindrop.io",
"data": {
"scoped": "true",
"connection": "raindrop-io"
}
},
"collection": {
"nested": {
"path": {
"path": [
"All bookmarks (except trash)"
]
}
}
},
"search": {
"nested": {
"type": {
"label": "Empty"
}
}
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:raindrop-io",
"label": "Connection",
"required": true
},
{
"name": "collection",
"type": "collection",
"label": "Collection",
"spec": [
{
"name": "path",
"type": "folder",
"label": "Pick a Collection",
"required": true
}
]
},
{
"name": "search",
"type": "collection",
"label": "Filter",
"spec": [
{
"name": "word",
"type": "text",
"label": "Search"
},
{
"name": "tags",
"type": "select",
"label": "Tags",
"multiple": true
},
{
"name": "important",
"type": "boolean",
"label": "Favorites Only",
"required": true
},
{
"name": "broken",
"type": "boolean",
"label": "Broken Links Only",
"required": true
},
{
"name": "file",
"type": "boolean",
"label": "File Only",
"required": true
},
{
"name": "type",
"type": "select",
"label": "Type",
"validate": {
"enum": [
"link",
"article",
"image",
"video",
"document",
"audio"
]
}
},
{
"name": "link",
"type": "text",
"label": "URL Search"
}
]
},
{
"name": "limit",
"type": "uinteger",
"label": "Limit",
"required": true
}
]
}
},
{
"id": 2,
"module": "openai-gpt-3:CreateCompletion",
"version": 1,
"parameters": {
"__IMTCONN__": 2363510
},
"mapper": {
"select": "chat",
"max_tokens": "4096",
"temperature": "1",
"response_format": "text",
"model": "gpt-3.5-turbo-16k",
"messages": [
{
"role": "system",
"content": "Based on the elements I'm going to give you, write me a short 80-word description to sum up quickly and succinctly. This is a bookmark I've created for a website. In reply, give me only the summary I've asked for. Write in english."
},
{
"role": "user",
"content": "Titre : {{1.title}}\nDomaine : {{1.domain}}\nURL : {{1.link}}\nPreview HTML : {{1.html}}"
}
]
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "My OpenAI connection",
"data": {
"scoped": "true",
"connection": "openai-gpt-3"
}
}
},
"expect": {
"select": {
"label": "Create a Chat Completion (GPT Models)"
},
"logit_bias": {
"mode": "chose"
},
"response_format": {
"mode": "chose",
"label": "Text"
},
"stop": {
"mode": "chose"
},
"additionalParameters": {
"mode": "chose"
},
"model": {
"mode": "chose",
"label": "gpt-3.5-turbo-16k"
},
"messages": {
"mode": "chose",
"items": [
{
"role": {
"mode": "chose",
"label": "System"
}
},
{
"role": {
"mode": "chose",
"label": "User"
}
}
]
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:openai-gpt-3",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "select",
"type": "select",
"label": "Select Method",
"required": true,
"validate": {
"enum": [
"chat",
"prompt"
]
}
},
{
"name": "max_tokens",
"type": "number",
"label": "Max Tokens"
},
{
"name": "temperature",
"type": "number",
"label": "Temperature",
"validate": {
"max": 2,
"min": 0
}
},
{
"name": "top_p",
"type": "number",
"label": "Top P",
"validate": {
"max": 1,
"min": 0
}
},
{
"name": "n_completions",
"type": "number",
"label": "Number"
},
{
"name": "frequency_penalty",
"type": "number",
"label": "Frequency Penalty",
"validate": {
"max": 2,
"min": -2
}
},
{
"name": "presence_penalty",
"type": "number",
"label": "Presence Penalty",
"validate": {
"max": 2,
"min": -2
}
},
{
"name": "logit_bias",
"type": "array",
"label": "Token Probability",
"spec": [
{
"name": "token",
"type": "text",
"label": "Token",
"required": true
},
{
"name": "probability",
"type": "number",
"label": "Probability",
"required": true,
"validate": {
"max": 100,
"min": -100
}
}
]
},
{
"name": "response_format",
"type": "select",
"label": "Response Format",
"validate": {
"enum": [
"text",
"json_object"
]
}
},
{
"name": "seed",
"type": "integer",
"label": "Seed"
},
{
"name": "stop",
"type": "array",
"label": "Stop Sequences",
"validate": {
"maxItems": 4
},
"spec": {
"type": "text",
"name": "value"
}
},
{
"name": "additionalParameters",
"type": "array",
"label": "Other Input Parameters",
"spec": [
{
"name": "key",
"type": "text",
"label": "Parameter Name",
"required": true
},
{
"name": "type",
"type": "select",
"label": "Input Type",
"options": [
{
"label": "Text",
"value": "text",
"nested": [
{
"name": "value",
"type": "text",
"label": "Parameter Value"
}
],
"default": true
},
{
"label": "Number",
"value": "number",
"nested": [
{
"name": "value",
"type": "number",
"label": "Parameter Value"
}
]
},
{
"label": "Boolean",
"value": "boolean",
"nested": [
{
"name": "value",
"type": "boolean",
"label": "Parameter Value"
}
]
},
{
"label": "Date",
"value": "date",
"nested": [
{
"name": "value",
"type": "date",
"label": "Parameter Value"
}
]
},
{
"label": "Any",
"value": "any",
"nested": [
{
"name": "value",
"type": "any",
"label": "Parameter Value"
}
]
}
]
}
]
},
{
"name": "model",
"type": "select",
"label": "Model",
"required": true
},
{
"name": "messages",
"type": "array",
"label": "Messages",
"required": true,
"spec": [
{
"name": "role",
"type": "select",
"label": "Role",
"options": [
{
"label": "System",
"value": "system"
},
{
"label": "User",
"value": "user"
},
{
"label": "Assistant",
"value": "assistant"
}
],
"required": true
},
{
"name": "content",
"type": "text",
"label": "Message Content"
}
]
}
],
"advanced": true
}
},
{
"id": 3,
"module": "raindrop-io:updateABookmark",
"version": 1,
"parameters": {
"__IMTCONN__": 2363503
},
"mapper": {
"bookmark": {
"select": "map",
"path": "{{1.`_id`}}"
},
"link": "{{1.link}}",
"title": "{{1.title}}",
"excerpt": "{{2.choices[].message.content}}",
"collection": {}
},
"metadata": {
"designer": {
"x": 600,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "Raindrop.io",
"data": {
"scoped": "true",
"connection": "raindrop-io"
}
}
},
"expect": {
"bookmark": {
"nested": {
"select": {
"label": "Map a Bookmark ID"
}
}
},
"collection": {
"nested": {
"select": {
"label": "Empty"
}
}
},
"tags": {
"mode": "chose"
},
"important": {
"mode": "chose"
},
"media": {
"mode": "chose"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:raindrop-io",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "bookmark",
"type": "collection",
"label": "Bookmark",
"spec": [
{
"name": "select",
"type": "select",
"label": "Way of Selecting Bookmarks",
"required": true,
"validate": {
"enum": [
"map",
"pick"
]
}
},
{
"name": "path",
"type": "uinteger",
"label": "Bookmark ID",
"required": true
}
]
},
{
"name": "link",
"type": "url",
"label": "URL"
},
{
"name": "title",
"type": "text",
"label": "Title"
},
{
"name": "excerpt",
"type": "text",
"label": "Description"
},
{
"name": "collection",
"type": "collection",
"label": "Collection",
"spec": [
{
"name": "select",
"type": "select",
"label": "Way of Selecting Collections",
"validate": {
"enum": [
"map",
"pick"
]
}
}
]
},
{
"name": "tags",
"type": "select",
"label": "Tags",
"multiple": true
},
{
"name": "important",
"type": "boolean",
"label": "Favorite"
},
{
"name": "media",
"type": "array",
"label": "Cover URLs",
"spec": [
{
"name": "link",
"type": "url",
"label": "URL"
}
]
},
{
"name": "order",
"type": "number",
"label": "Order"
}
]
}
}
],
"metadata": {
"instant": false,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "eu1.make.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment