Skip to main content
Question

Generate a Video in tauvs using customer data

  • October 1, 2024
  • 1 reply
  • 12 views

Hi 

I'm working on using customer data to auto generate a customized video. This will then be sent out in a marketing email. I have made the connection between Zapier and Tauvs and can automated the video generation process. However I cannot get the user input data to be sent or recived by Tauvs. The script is sent fine but the “Input_data[‘Name’] is never populated.  

 

Being new to python I wanted to know if I'm doing something wrong. 

 

 

 

import requests url = "https://tavusapi.com/v2/videos"

payload = {

"script": """Hi input_data['Name'] Thank you for downloading""" ,

"replica_id": "r79e1c033f",

"video_name": "input_data['Name']" }

headers = { "x-api-key": "*******************", "Content-Type": "application/json" }

response = requests.request("POST", url, json=payload, headers=headers)

 

print(response.text)

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14

Hi @Tom GH 

For us to have more context, post screenshots showing how your Zap steps are outlined and configured in EDIT mode along with any errors.