Skip to main content

How to set custom Search Attributes in Python

To set custom Search Attributes, use the search_attributes parameter of the 'start_workflow()' method.

handle = await client.start_workflow(
"your-workflow-name",
id="your-workflow-id",
task_queue="your-task-queue",
search_attributes={"Your-Custom-Keyword-Field": ["value"]},
)