Skip to main content

Workflow Templates

Overview

This guide covers the use of pre-built workflow templates in Gentic.

Available Templates

Customer Support

const workflow = await client.workflows.createFromTemplate({
templateId: "customer-support",
parameters: {
knowledgeSourceId: "kb-123",
agentId: "support-agent"
}
});

Data Processing

const workflow = await client.workflows.createFromTemplate({
templateId: "data-processing",
parameters: {
inputSource: "s3://bucket/data",
outputDestination: "s3://bucket/results"
}
});

Content Generation

const workflow = await client.workflows.createFromTemplate({
templateId: "content-generation",
parameters: {
style: "formal",
tone: "professional",
length: "medium"
}
});

Template Customization

Parameter Overrides

const workflow = await client.workflows.createFromTemplate({
templateId: "customer-support",
parameters: {
knowledgeSourceId: "kb-123",
agentId: "support-agent",
customSteps: [
{
type: "classification",
config: {
model: "gpt-4",
categories: ["urgent", "normal", "low"]
}
}
]
}
});

Template Extension

const workflow = await client.workflows.createFromTemplate({
templateId: "data-processing",
parameters: {
inputSource: "s3://bucket/data",
outputDestination: "s3://bucket/results",
additionalSteps: [
{
type: "validation",
config: {
rules: ["format", "completeness"]
}
}
]
}
});

Best Practices

  1. Template Selection

    • Choose appropriate template
    • Consider customization needs
    • Evaluate performance impact
  2. Customization

    • Start with minimal changes
    • Test thoroughly
    • Document modifications
  3. Maintenance

    • Regular updates
    • Version control
    • Performance monitoring

Next Steps