Pick community mind #55
maghazouani
started this conversation in
General
Replies: 1 comment
-
|
Yes, the data will be dynamic! Workflow-use is specifically designed to record a workflow once and then reuse it with different data each time. The system automatically extracts variables from forms and allows you to provide new values for each execution. How Dynamic Data Works in Workflow-UseVariables and Input SchemaWhen you record a workflow (like adding a contact to your CRM), workflow-use automatically:
Example from the repository: steps:
- description: Enter first name
type: input
target_text: firstName
value: '{first_name}'
- description: Enter last name
type: input
target_text: lastName
value: '{last_name}'
input_schema:
- name: first_name
type: string
required: true
- name: last_name
type: string
required: trueFor Your CRM Use CaseWhen you record adding a contact to your CRM:
Two Ways to Run with Dynamic DataMethod 1: Interactive CLIpython cli.py run-workflow-no-ai add_crm_contact.workflow.jsonThe CLI will prompt you for each variable: Method 2: Programmatic APIfrom workflow_use import Workflow
workflow = Workflow.load_from_file("add_crm_contact.workflow.json")
result = await workflow.run_with_no_ai(
input_values={
"contact_name": "Jane Doe",
"contact_email": "jane@example.com",
"contact_phone": "+1-555-0123"
}
)Run as Tool (AI-Powered Flexibility)You can also run workflows as tools with natural language prompts: python cli.py run-as-tool add_crm_contact.workflow.json --prompt "add a contact named Alice Cooper with email alice@rock.com"The LLM will extract the data from your prompt and map it to the workflow variables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community,
(I haven't tried it)
I'm thinking of a use case to open the CRM and add a contact.
If I'll show the browser how to add a contact. Then from there the data will be dynamic ? meaning it won't leverage the same data used for the recording ?
Thanks
Mahdi G
Beta Was this translation helpful? Give feedback.
All reactions