I’m using an HTTP Request node to create a pdf using Anvil. I’m now trying to figure out how to upload that pdf to Airtable.
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
],
"disabled": true
},
{
"parameters": {
"interval": 13,
"unit": "minutes"
},
"name": "Interval",
"type": "n8n-nodes-base.interval",
"typeVersion": 1,
"position": [
810,
430
],
"disabled": true
},
{
"parameters": {
"authentication": "basicAuth",
"requestMethod": "POST",
"url": "https://app.useanvil.com/api/v1/fill/XnuTZKVZg1Mljsu999od.pdf",
"responseFormat": "file",
"jsonParameters": true,
"options": {},
"bodyParametersJson": "{\n \"title\": \"IRS-W4\",\n \"fontSize\": 14,\n \"textColor\": \"#cf000a\",\n \"data\": {\n \"name\": {\n \"firstName\": \"Claire\",\n \"lastName\": \"Robin\"\n },\n \"address\": {\n \"street1\": \"123 Main St\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94124\",\n \"country\": \"US\"\n },\n \"ssn\": \"753284832\",\n \"filingStatus\": \"Joint\",\n \"under17Cost\": 2000,\n \"otherDependentsCost\": 0,\n \"totalDependentsCost\": 2000,\n \"otherIncome\": 1500,\n \"otherDeducations\": 500,\n \"extraWithholding\": 500,\n \"employerName\": \"Aaron Jones\",\n \"firstDateEmployment\": \"2018/03/02\",\n \"employerEin\": \"5871369\",\n \"headOfHousehold\": true,\n \"twoJobs\": false,\n \"employerAddress\": {\n \"street1\": \"4832 Market Street\",\n \"city\": \"San Francisco\",\n \"state\": \"CA\",\n \"zip\": \"94103\",\n \"country\": \"US\"\n }\n }\n}"
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
1010,
430
],
"credentials": {
"httpBasicAuth": "Anvil Dev"
}
},
{
"parameters": {
"operation": "append",
"application": "appdQtqs4grFntES3",
"table": "tblbyX4glpkGYz3Zh",
"options": {}
},
"name": "Airtable",
"type": "n8n-nodes-base.airtable",
"typeVersion": 1,
"position": [
1540,
440
],
"credentials": {
"airtableApi": "Airtable API"
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "Email",
"value": "[email protected]"
}
]
},
"options": {
"dotNotation": false
}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1250,
440
]
}
],
"connections": {
"Interval": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Airtable",
"type": "main",
"index": 0
}
]
]
}
}
}