> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WorkflowButton

> Lets users trigger a workflow directly from a customer card.

A workflow button runs one of your workflows when a user clicks it.

<Frame>
  <img src="https://mintcdn.com/plain-docs-orca-916-agent-docs-restructure/iAAItm1tmWvvIVSZ/public/images/ui-component-workflow-button.png?fit=max&auto=format&n=iAAItm1tmWvvIVSZ&q=85&s=ab47ab1a81356d0986391a205663de08" alt="Example workflow button" width="1664" height="300" data-path="public/images/ui-component-workflow-button.png" />
</Frame>

A workflow button has the following properties:

* `workflowButtonLabel`: the text of the button
* `workflowButtonWorkflowIdentifier`: an object containing either:
  * `workflowId`: the ID of the workflow to trigger

When clicked, the button will trigger the specified workflow in the context of the current thread. The button shows a loading state while the workflow is being triggered and displays a tooltip with the latest execution status, including when it was run and how long it took.

For example:

<Snippet file="graphql/ui-workflow-button.mdx" />
