Skip to content

Instantly share code, notes, and snippets.

@keithmancuso
Last active April 10, 2025 22:15
Show Gist options
  • Save keithmancuso/5069ff1cbff22bfd35035acb019be513 to your computer and use it in GitHub Desktop.
Save keithmancuso/5069ff1cbff22bfd35035acb019be513 to your computer and use it in GitHub Desktop.
Glean Workflow API
{
"openapi": "3.0.0",
"info": {
"title": "Glean Workflow API",
"version": "1.0.0"
},
"paths": {
"/runworkflow": {
"post": {
"summary": "Trigger Glean Workflow",
"operationId": "runWorkflow",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"fields": {
"type": "object",
"properties": {
"Lead Name": { "type": "string" },
"Lead Summary": { "type": "string" },
"Offerings List": { "type": "string" },
"Outreach Method": { "type": "string" }
},
"required": ["Lead Name", "Lead Summary", "Offerings List", "Outreach Method"]
},
"saveAsChat": { "type": "boolean" },
"stream": { "type": "boolean" },
"workflowId": { "type": "string" }
},
"required": ["fields", "saveAsChat", "stream", "workflowId"]
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment