Skip to content

Instantly share code, notes, and snippets.

@lisaross
Created June 2, 2025 23:01
Show Gist options
  • Save lisaross/02905fd47fa209dd4f7373ec458f0181 to your computer and use it in GitHub Desktop.
Save lisaross/02905fd47fa209dd4f7373ec458f0181 to your computer and use it in GitHub Desktop.
{
"name": "Voicenotes to Tana Integration",
"flow": [
{
"id": 8,
"module": "gateway:CustomWebHook",
"version": 1,
"parameters": {
"hook": 2282247,
"maxResults": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0,
"name": "Webhook URL"
},
"restore": {
"parameters": {
"hook": {
"label": "Voicenotes",
"data": {
"editable": "true"
}
}
}
},
"parameters": [
{
"name": "hook",
"type": "hook:gateway-webhook",
"label": "Webhook",
"required": true
},
{
"name": "maxResults",
"type": "number",
"label": "Maximum number of results"
}
]
}
},
{
"id": 9,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "tana_api_token",
"value": "paste_your_api_key_here"
},
{
"name": "target_node_id",
"value": "INBOX"
},
{
"name": "tana_payload_template",
"value": "paste_your_voicenotes_supertag_payload_here"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 300,
"y": 0,
"name": "Tana Configuration"
},
"restore": {
"expect": {
"variables": {
"items": [
null,
null,
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "tana_api_token",
"label": "tana_api_token",
"type": "any"
},
{
"name": "target_node_id",
"label": "target_node_id",
"type": "any"
},
{
"name": "tana_payload_template",
"label": "tana_payload_template",
"type": "any"
}
]
}
},
{
"id": 10,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": 231378
},
"mapper": {
"json": "{{9.tana_payload_template}}"
},
"metadata": {
"designer": {
"x": 600,
"y": 0,
"name": "Get Supertag ID from Config"
},
"restore": {
"parameters": {
"type": {
"label": "Extract Voicenotes SupertagID"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
],
"interface": [
{
"name": "nodes",
"label": "Nodes",
"help": "",
"type": "array",
"spec": {
"type": "collection",
"spec": [
{
"name": "name",
"label": null,
"help": "",
"type": "text",
"default": null,
"required": false,
"multiline": false
},
{
"name": "supertags",
"label": null,
"help": "",
"type": "array",
"spec": {
"type": "collection",
"spec": [
{
"name": "id",
"label": null,
"help": "",
"type": "text",
"default": null,
"required": false,
"multiline": false
}
],
"required": false
},
"required": false
},
{
"name": "children",
"label": null,
"help": "",
"type": "array",
"spec": {
"type": "collection",
"spec": [
{
"name": "name",
"label": null,
"help": "",
"type": "text",
"default": null,
"required": false,
"multiline": false
}
],
"required": false
},
"required": false
}
],
"required": false
},
"required": false
}
]
}
},
{
"id": 4,
"module": "http:ActionSendData",
"version": 3,
"parameters": {
"handleErrors": true,
"useNewZLibDeCompress": true
},
"mapper": {
"url": "https://europe-west1-tagr-prod.cloudfunctions.net/addToNodeV2",
"serializeUrl": false,
"method": "post",
"headers": [
{
"name": "Authorization",
"value": "Bearer {{9.tana_api_token}}"
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"qs": [],
"bodyType": "raw",
"parseResponse": true,
"authUser": "",
"authPass": "",
"timeout": "",
"shareCookies": false,
"ca": "",
"rejectUnauthorized": true,
"followRedirect": true,
"useQuerystring": false,
"gzip": true,
"useMtls": false,
"contentType": "application/json",
"data": "{\n \"targetNodeId\": \"{{9.target_node_id}}\",\n \"nodes\": [\n {\n \"name\": \"{{8.data.title}}\",\n \"supertags\": [\n {\n \"id\": \"{{10.nodes[].supertags[].id}}\"\n }\n ],\n \"children\": [\n {\n \"name\": \"{{8.data.transcript}}\"\n }\n ]\n }\n ]\n}",
"followAllRedirects": false
},
"metadata": {
"designer": {
"x": 900,
"y": 0,
"name": "Send to Tana"
},
"restore": {
"expect": {
"method": {
"mode": "chose",
"label": "POST"
},
"headers": {
"mode": "chose",
"items": [
null,
null
]
},
"qs": {
"mode": "chose"
},
"bodyType": {
"label": "Raw"
},
"contentType": {
"label": "JSON (application/json)"
}
}
},
"parameters": [
{
"name": "handleErrors",
"type": "boolean",
"label": "Evaluate all states as errors (except for 2xx and 3xx )",
"required": true
},
{
"name": "useNewZLibDeCompress",
"type": "hidden"
}
],
"expect": [
{
"name": "url",
"type": "url",
"label": "URL",
"required": true
},
{
"name": "serializeUrl",
"type": "boolean",
"label": "Serialize URL",
"required": true
},
{
"name": "method",
"type": "select",
"label": "Method",
"required": true,
"validate": {
"enum": [
"get",
"head",
"post",
"put",
"patch",
"delete",
"options"
]
}
},
{
"name": "headers",
"type": "array",
"label": "Headers",
"spec": [
{
"name": "name",
"label": "Name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Value",
"type": "text"
}
]
},
{
"name": "qs",
"type": "array",
"label": "Query String",
"spec": [
{
"name": "name",
"label": "Name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Value",
"type": "text"
}
]
},
{
"name": "bodyType",
"type": "select",
"label": "Body type",
"validate": {
"enum": [
"raw",
"x_www_form_urlencoded",
"multipart_form_data"
]
}
},
{
"name": "parseResponse",
"type": "boolean",
"label": "Parse response",
"required": true
},
{
"name": "authUser",
"type": "text",
"label": "User name"
},
{
"name": "authPass",
"type": "password",
"label": "Password"
},
{
"name": "timeout",
"type": "uinteger",
"label": "Timeout",
"validate": {
"max": 300,
"min": 1
}
},
{
"name": "shareCookies",
"type": "boolean",
"label": "Share cookies with other HTTP modules",
"required": true
},
{
"name": "ca",
"type": "cert",
"label": "Self-signed certificate"
},
{
"name": "rejectUnauthorized",
"type": "boolean",
"label": "Reject connections that are using unverified (self-signed) certificates",
"required": true
},
{
"name": "followRedirect",
"type": "boolean",
"label": "Follow redirect",
"required": true
},
{
"name": "useQuerystring",
"type": "boolean",
"label": "Disable serialization of multiple same query string keys as arrays",
"required": true
},
{
"name": "gzip",
"type": "boolean",
"label": "Request compressed content",
"required": true
},
{
"name": "useMtls",
"type": "boolean",
"label": "Use Mutual TLS",
"required": true
},
{
"name": "contentType",
"type": "select",
"label": "Content type",
"validate": {
"enum": [
"text/plain",
"application/json",
"application/xml",
"text/xml",
"text/html",
"custom"
]
}
},
{
"name": "data",
"type": "buffer",
"label": "Request content"
},
{
"name": "followAllRedirects",
"type": "boolean",
"label": "Follow all redirect",
"required": true
}
]
}
}
],
"metadata": {
"instant": true,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"slots": null,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "us1.make.com",
"notes": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment