Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook Trigger or Api REST for external execution!? #1825

Open
alanada opened this issue Sep 29, 2024 · 1 comment
Open

webhook Trigger or Api REST for external execution!? #1825

alanada opened this issue Sep 29, 2024 · 1 comment

Comments

@alanada
Copy link

alanada commented Sep 29, 2024

Example:
id = (defined is "host workflow")

curl -X POST https://automa.site/webhook/id
or
curl -X POST https://automa.site/host_workflow/id

-H "Content-Type: application/json" \

-d '{"variable1": "value1", "variable2": "value2"}'
or
-d '{"variable1": {"input1": "inputValue1", input2": "inputValue2"}, "variable2": "value2"}'

When you call the "host workflow" it will be possible to start the workflow

@alanada
Copy link
Author

alanada commented Oct 2, 2024

https://docs.automa.site/blocks/trigger.html#trigger-through-url

it this works sometimes:

// Using workflow Id
window.dispatchEvent(new CustomEvent('automa:execute-workflow', {
detail: {
id: 'Ko90DG1Uq',
data: {
variables: {
prod: '200 300',
search: 'paper'
}
}
}
}));

This executes the workflow but does not get the values ​​of the variables:

chrome-extension://infppggnoaenmfagbfknfkancpbljcca/execute.html#/Ko90DTIdkjeu?prod=200 300&search=paper

I would like to use this.

how is it getting the value of the variables: {{variables.prod}}, {{variables.search}} or {{variables@prod}}, {{variables@search}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant