Script

The Source node that brings text into a workflow — typed inline, from a file, or transcribed from audio.

Family: Source · type: source_script

The Script node is where every line begins. It provides the text the rest of the workflow voices — typed inline, read from an uploaded file, or transcribed from audio you provide. Every runnable workflow has at least one.

Config

Config keyMeaning
input_typeWhere the text comes from — text (typed inline), file (an uploaded .txt/.csv), or media (audio, transcribed for you)
textThe script, when input_type is text
source_languageThe script’s language (BCP-47, e.g. en-us)
upload_idsConfirmed upload IDs, when the script comes from a file or media
csv_column / csv_has_headerWhich CSV column holds the script, and whether the file has a header row

Type your script inline

The simplest source — set the text and its language:

1node["config"] = {"input_type": "text", "source_language": "en-us",
2 "text": "Hello from Onepin."}

Read from a file

Upload the file first, then point the node at the confirmed upload:

1node["config"] = {"input_type": "file", "source_language": "en-us",
2 "upload_ids": [upload_id]}

The upload is a three-step flow (client.uploads.create → PUT the bytes → client.uploads.confirm with context_type="workflow"). See Upload a file for the walkthrough. For a CSV, set csv_column to the column holding the script.

Inspect this node

Get the live config schema straight from the platform:

1client.nodes.get_node_detail(node_type="source_script").data