Discussions
API with Templates
Having the hardest time with making an API call to our template
Tried a number of things but I'm missing something.
Here's the json code I'm using inside n8n to make the api call for the template id: bab6a9f41dbe402d9cdabc0fb6d17ad9
Its called Test API
Again, I have the avatar working perfectly, but I'm trying to make this a little more polished with the template by adding in a video background and bringing in my voice from an mp3 from eleven labs thats saved in s3 and having captions. The dp_audio is plugged into the template.
Here's the code
{
"caption": true,
"title": "{{ $('Airtable1').item.json.fields.Title }}",
"variables": {
"dp_audio": {
"name": "dp_audio",
"type": "audio",
"properties": {
"url": "{{ $('Code in JavaScript').item.json.audioUrl }}",
"asset_id": null
}
}
}
}
And here is what is sent to heygen when the workflow is run:
{
"caption": true,
"title": "Disney's SEO Hack Reveals Backlinks Still Matter",
"variables": {
"dp_audio": {
"name": "dp_audio",
"type": "audio",
"properties": {
"url": "https://derekpierceai.s3.amazonaws.com/Disney's-SEO-Hack-Reveals-Backlinks-Still-Matter-audio.mp3",
"asset_id": null
}
}
}
}