# ...
async def main():
    client = await Client.connect("localhost:7233")

    result = await client.execute_workflow(
        YourWorkflow.run,
        "your name",
        id="your-workflow-id",
        task_queue="your-task-queue",
    )

    print(f"Result: {result}")

if __name__ == "__main__":
    asyncio.run(main())
```

### Set a Workflow Id {#workflow-id}

**How to set a Workflow Id using the Python SDK**

You must set a [Workflow Id](/workflow-execution/workflowid-runid#workflow-id).

When setting a Workflow Id, we recommended mapping it to a business process or business entity identifier, such as an
order identifier or customer identifier.

To set a Workflow Id in Python, specify the `id` argument when executing a Workflow with either
[`start_workflow()`](https://python.temporal.io/temporalio.client.Client.html#start_workflow) or
[`execute_workflow()`](https://python.temporal.io/temporalio.client.Client.html#execute_workflow) methods.

The `id` argument should be a unique identifier for the Workflow Execution.

  
    View the source code
  {' '}
  in the context of the rest of the application code.

```python