{
"meta": {
"instanceId": "7858a8e25b8fc4dae485c1ef345e6fe74effb1f5060433ef500b4c186c965c18"
},
"nodes": [
{
"id": "49ab7596-665e-4a0f-bb8b-9dc04525ce88",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
2340,
1440
],
"parameters": {
"message": "={{ $json.html }}",
"options": {},
"subject": "Podcast Review"
},
"credentials": {
"gmailOAuth2": {
"id": "1MUdv1HbrQUFABiZ",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "40aa23f4-69d6-46e5-84a2-b46a64a3f0af",
"name": "TaddyTopDaily",
"type": "n8n-nodes-base.httpRequest",
"position": [
1620,
820
],
"parameters": {
"url": "https://api.taddy.org/",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "=query { getTopChartsByGenres( limitPerPage:10, filterByCountry:UNITED_STATES_OF_AMERICA, taddyType:PODCASTEPISODE, genres:PODCASTSERIES_{{ $json.genre }}){ topChartsId podcastEpisodes{ uuid name audioUrl podcastSeries{ uuid name } } } }"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "X-USER-ID"
},
{
"name": "X-API-KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "42eea23b-b09c-49ee-af5b-12abb3960390",
"name": "Genre",
"type": "n8n-nodes-base.set",
"position": [
1420,
820
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e995cd5b-b91c-4a9d-8215-44d7dfe3f52f",
"name": "genre",
"type": "string",
"value": "TECHNOLOGY"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "da256fbf-ed7b-4a26-9fa8-33d1c2b717a5",
"name": "Split Out",
"type": "n8n-nodes-base.splitOut",
"position": [
1840,
820
],
"parameters": {
"options": {},
"fieldToSplitOut": "data.getTopChartsByGenres.podcastEpisodes"
},
"typeVersion": 1
},
{
"id": "069ab68c-dcd6-406f-8e7f-2597f62a04f5",
"name": "Whisper Transcribe Audio",
"type": "n8n-nodes-base.httpRequest",
"position": [
1880,
1120
],
"parameters": {
"url": "https://api.openai.com/v1/audio/transcriptions",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "whisper-1"
},
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "tTOOlpAaNT3QoKbQ",
"name": "OpenAi account"
}
},
"typeVersion": 3
},
{
"id": "ffa67b8d-8601-4e1d-8f72-b6266e6b3327",
"name": "Final Data",
"type": "n8n-nodes-base.set",
"position": [
2320,
1120
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n\"podcast\": \"{{ $('TaddyTopDaily').item.json.data.getTopChartsByGenres.podcastEpisodes[$itemIndex].podcastSeries.name }}\",\n\"name\": \"{{ $('TaddyTopDaily').item.json.data.getTopChartsByGenres.podcastEpisodes[$itemIndex].name.replace(/\\\"/g,'\\\"') }}\",\n \"url\":\"{{ $('TaddyTopDaily').item.json.data.getTopChartsByGenres.podcastEpisodes[$itemIndex].audioUrl.replace(/\"/g,'') }}\",\n\"summary\":\"{{ $json.message.content.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"').replace(/\\n/g, '
').replace(/\\r/g, '\\\\r').replace(/\\t/g, '\\\\t') }}\"\n \n}\n"
},
"typeVersion": 3.4
},
{
"id": "88cd1fa5-07ae-4dcd-b4f8-85cbf7c98d73",
"name": "Merge Results",
"type": "n8n-nodes-base.code",
"position": [
1900,
1440
],
"parameters": {
"jsCode": "return [{fields:$input.all().map(x=>x.json)}]"
},
"typeVersion": 2
},
{
"id": "4c2c80d1-750f-42f1-a0f1-343dec325b0f",
"name": "HTML",
"type": "n8n-nodes-base.html",
"position": [
2120,
1440
],
"parameters": {
"html": "\n\n
'+propname+' | ').join('') }}\n |||
${ep.podcast} | ${ep.name} | ${ep.summary} |