Actions
Configure actions.
As content proceeds through the stages of the Graphlit workflow, it generates events which can be synchronized with external systems, via webhooks or API integrations.
When creating a Workflow, you can specify one or more action connectors, which will receive the events generated during the content workflow.
The webhook will receive a JSON payload via HTTP POST with the event details.
Event Types:
Event Type
Description
CONTENT_INGESTED
Content has completed the ingestion workflow stage
CONTENT_FINISHED
Content has completed all workflow stages
CONTENT_ERRORED
Content has failed to complete a workflow stage
Mutation:
mutation CreateWorkflow($workflow: WorkflowInput!) {
createWorkflow(workflow: $workflow) {
id
name
state
actions {
connector {
type
uri
}
}
}
}
Variables:
{
"workflow": {
"actions": [
{
"connector": {
"type": "WEB_HOOK",
"uri": "https://webhook.site/2042f544-cea9-4b40-a47d-1d9947ef7cf5"
}
}
],
"name": "Actions"
}
}
Response:
{
"actions": [
{
"connector": {
"type": "WEB_HOOK",
"uri": "https://webhook.site/2042f544-cea9-4b40-a47d-1d9947ef7cf5"
}
}
],
"id": "9b4104b2-7bf1-4e44-84f5-57a2270cc4ce",
"name": "Actions",
"state": "ENABLED"
}
Last updated
Was this helpful?