Logo vun Flow Generation

Flow Generation

Organisatioun
Happy-Technologies-LLC
flow-generation

Generate ServiceNow Flow Designer flows from natural language descriptions including triggers, actions, conditions, subflows, approval flows, notification flows, and data manipulation flows

Iwwersiicht

EditeurHappy-Technologies-LLC
Repositoryhappy-platform-skills
Skill-Nummflow-generation
Stären
41
Forks
14
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Happy-Technologies-LLC op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Flow Generation an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Happy-Technologies-LLC/happy-platform-skills/tree/main/skills/genai/flow-generation
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Happy-Technologies-LLC/happy-platform-skills.git /tmp/happy-platform-skills
mkdir -p .claude/skills
cp -r /tmp/happy-platform-skills/skills/genai/flow-generation .claude/skills/flow-generation
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Flow Generation an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Flow Generation automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Flow Generation net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Flow Designer Flow Generation

Overview

This skill covers generating ServiceNow Flow Designer flows from natural language descriptions:

  • Creating flows with appropriate triggers (record-based, scheduled, application-based)
  • Adding actions: approvals, notifications, record operations, scripted steps
  • Building conditional logic with if/else branches and decision tables
  • Creating subflows for reusable automation components
  • Generating approval flows with parallel/sequential approval patterns
  • Building notification flows with dynamic content
  • Data manipulation flows for record transformations and bulk operations

When to use: When automating business processes, generating approval workflows, building notification logic, or creating data manipulation pipelines in Flow Designer.

Prerequisites

  • Roles: flow_designer or admin
  • Plugins: com.glide.hub.flow_designer (Flow Designer), com.glide.hub.action_type (Action Designer)
  • Access: sys_hub_flow, sys_hub_action_type_definition, sys_flow tables
  • Knowledge: Basic understanding of Flow Designer concepts (triggers, actions, flow logic)
  • Related Skills: genai/playbook-generation for Process Automation, genai/spoke-generation for integrations

Procedure

Step 1: Analyze the Natural Language Description

Parse the user's request to identify:

  • Trigger type: What starts the flow (record create/update, schedule, inbound email, REST)
  • Target table: Which table the flow operates on
  • Actions: What the flow should do (create records, send notifications, request approvals)
  • Conditions: Any branching logic or filters
  • Outputs: Expected results or return values

Step 2: Query Existing Flows for Patterns

MCP Approach:

Use SN-Query-Table on sys_hub_flow:
  - query: active=true^trigger_type=RECORD_CREATED^table=incident
  - fields: sys_id,name,description,trigger_type,table,status
  - limit: 10

REST Approach:

GET /api/now/table/sys_hub_flow
  ?sysparm_query=active=true^trigger_type=RECORD_CREATED^table=incident
  &sysparm_fields=sys_id,name,description,trigger_type,table,status
  &sysparm_limit=10

Step 3: Create the Flow Record

MCP Approach:

Use SN-Create-Record on sys_hub_flow:
  - name: "Auto-Assign Priority Incidents"
  - description: "Automatically assigns high-priority incidents to the on-call team"
  - trigger_type: "RECORD_CREATED"
  - table: "incident"
  - status: "draft"
  - run_as: "system"
  - scope: "global"

REST Approach:

POST /api/now/table/sys_hub_flow
Body: {
  "name": "Auto-Assign Priority Incidents",
  "description": "Automatically assigns high-priority incidents to the on-call team",
  "trigger_type": "RECORD_CREATED",
  "table": "incident",
  "status": "draft",
  "run_as": "system",
  "scope": "global"
}

Step 4: Configure the Trigger

Key trigger types and their configurations:

Trigger TypeValueConfiguration Fields
Record CreatedRECORD_CREATEDtable, conditions
Record UpdatedRECORD_UPDATEDtable, conditions, fields_to_monitor
Record DeletedRECORD_DELETEDtable, conditions
ScheduledSCHEDULEDschedule, time_zone, repeat_interval
Inbound EmailINBOUND_EMAILtarget_table, conditions
REST APIRESTendpoint_path, http_method
Service CatalogSC_REQ_ITEMcatalog_item, conditions

MCP Approach:

Use SN-Create-Record on sys_hub_trigger_instance:
  - flow: "<flow_sys_id>"
  - trigger_type: "RECORD_UPDATED"
  - table: "incident"
  - condition: "priority=1^state!=6"
  - fields_to_monitor: "priority,assignment_group"

REST Approach:

POST /api/now/table/sys_hub_trigger_instance
Body: {
  "flow": "<flow_sys_id>",
  "trigger_type": "RECORD_UPDATED",
  "table": "incident",
  "condition": "priority=1^state!=6",
  "fields_to_monitor": "priority,assignment_group"
}

Step 5: Add Flow Actions

Common action types and their sys_hub_action_type_definition references:

ActionType DefinitionKey Inputs
Create Recordsn_fd.create_recordtable, field_values
Update Recordsn_fd.update_recordrecord, field_values
Delete Recordsn_fd.delete_recordrecord
Look Up Recordsn_fd.look_up_recordtable, conditions
Ask for Approvalsn_fd.ask_for_approvalrecord, approvers, approval_type
Send Emailsn_fd.send_emailto, subject, body
Send Notificationsn_fd.send_notificationnotification, recipients
Log Messagesn_fd.logmessage, level
Run Scriptsn_fd.run_scriptscript
Wait for Conditionsn_fd.wait_for_conditiontable, condition, timeout

MCP Approach:

Use SN-Create-Record on sys_hub_action_instance:
  - flow: "<flow_sys_id>"
  - action_type: "<action_type_sys_id>"
  - order: 100
  - name: "Look Up Assignment Group"
  - inputs: {
      "table": "sys_user_group",
      "conditions": "name=Network Operations"
    }

Step 6: Add Conditional Logic

Build if/else branches using flow logic steps:

MCP Approach:

Use SN-Create-Record on sys_hub_action_instance:
  - flow: "<flow_sys_id>"
  - action_type: "sn_fd.if"
  - order: 200
  - name: "Check Priority Level"
  - inputs: {
      "condition": "trigger.current.priority == 1"
    }

For nested conditions, use the parent field to link child actions to the if/else block.

Step 7: Build Approval Flows

Sequential Approval Pattern:

Use SN-Create-Record on sys_hub_action_instance:
  - flow: "<flow_sys_id>"
  - action_type: "sn_fd.ask_for_approval"
  - order: 300
  - name: "Manager Approval"
  - inputs: {
      "record": "trigger.current",
      "approval_type": "approve_reject",
      "approvers": "trigger.current.opened_by.manager",
      "due_date_interval": "3 days"
    }

Parallel Approval Pattern: Add multiple approval actions inside a parallel block:

Use SN-Create-Record on sys_hub_action_instance:
  - flow: "<flow_sys_id>"
  - action_type: "sn_fd.parallel"
  - order: 300
  - name: "Parallel Approvals"

Then add child approval actions with parent referencing the parallel block.

Step 8: Create Subflows for Reusability

MCP Approach:

Use SN-Create-Record on sys_hub_sub_flow:
  - name: "Send Escalation Notification"
  - description: "Reusable subflow for sending escalation notifications"
  - status: "draft"
  - inputs: "record,escalation_level,notify_group"
  - access: "public"

REST Approach:

POST /api/now/table/sys_hub_sub_flow
Body: {
  "name": "Send Escalation Notification",
  "description": "Reusable subflow for sending escalation notifications",
  "status": "draft",
  "access": "public"
}

Step 9: Define Flow Inputs and Outputs

MCP Approach:

Use SN-Create-Record on sys_hub_flow_input:
  - flow: "<flow_sys_id>"
  - name: "assignment_group"
  - label: "Assignment Group"
  - type: "reference"
  - reference_table: "sys_user_group"
  - mandatory: true
Use SN-Create-Record on sys_hub_flow_output:
  - flow: "<flow_sys_id>"
  - name: "approval_status"
  - label: "Approval Status"
  - type: "string"

Step 10: Activate and Test the Flow

MCP Approach:

Use SN-Update-Record on sys_hub_flow:
  - sys_id: "<flow_sys_id>"
  - status: "published"

Verify the flow is active:

Use SN-Query-Table on sys_hub_flow:
  - query: sys_id=<flow_sys_id>
  - fields: sys_id,name,status,active

Tool Usage

ToolPurposeWhen to Use
SN-Query-TableFind existing flows and action typesPattern discovery and validation
SN-Create-RecordCreate flows, triggers, actionsBuilding new flow components
SN-Update-RecordModify flow settings, activate flowsEditing and publishing
SN-Get-Table-SchemaDiscover flow table fieldsUnderstanding available configurations

Best Practices

  1. Always create flows in draft status first -- never publish untested flows directly
  2. Use descriptive names for flows and actions that reflect business purpose
  3. Set run_as appropriately -- use "system" for background automation, "initiating_user" for user-triggered flows
  4. Add error handling -- include try/catch blocks and log actions for debugging
  5. Limit trigger conditions -- overly broad triggers cause performance issues
  6. Use subflows for repeated logic across multiple flows
  7. Monitor flow execution via sys_flow_context for runtime analysis
  8. Set appropriate timeouts on Wait for Condition actions to prevent indefinite hangs
  9. Test with restricted data before activating against production tables
  10. Document flow purpose in the description field for maintainability

Troubleshooting

IssueCauseResolution
Flow not triggeringTrigger conditions too restrictive or flow inactiveCheck sys_hub_flow.active and trigger conditions
Action fails with permission errorRun-as user lacks table accessChange run_as or grant roles to flow user
Flow executes multiple timesTrigger lacks update-field filterAdd fields_to_monitor to limit re-triggers
Subflow not foundSubflow is in draft or wrong scopePublish subflow and check access setting
Approval stuck in pendingNo approvers matchedVerify approver reference resolves to active users
Flow context shows errorScript action has runtime exceptionCheck sys_flow_context.error_message for details

Examples

Example 1: Incident Auto-Assignment Flow

Generate a flow that automatically assigns P1 incidents to the Network Operations team and sends a notification:

  • Trigger: Record Created on incident where priority=1
  • Action 1: Look Up Record on sys_user_group where name=Network Operations
  • Action 2: Update Record on trigger record setting assignment_group to lookup result
  • Action 3: Send Notification to assignment group members

Example 2: Change Request Approval Flow

Generate a multi-level approval flow for change requests:

  • Trigger: Record Updated on change_request where state=assess
  • Action 1: If risk=high, request CAB approval (parallel)
  • Action 2: If risk=moderate, request manager approval (sequential)
  • Action 3: On approval, update state to authorize
  • Action 4: On rejection, update state to closed with rejection notes

Example 3: Scheduled Data Cleanup Flow

Generate a scheduled flow to archive old resolved incidents:

  • Trigger: Scheduled, daily at 02:00 UTC
  • Action 1: Look Up Records on incident where state=6^resolved_at<javascript:gs.daysAgo(90)
  • Action 2: For each record, create archive record in u_incident_archive
  • Action 3: Delete original record
  • Action 4: Log summary of archived count

Related Skills

  • genai/playbook-generation - Process Automation Designer playbooks
  • genai/spoke-generation - Integration Hub spoke creation
  • catalog/approval-workflows - Catalog-specific approval configuration
  • itsm/incident-lifecycle - Incident table structure and fields

Heefeg gestallte Froen

Wat mécht de KI-Skill Flow Generation?

Generate ServiceNow Flow Designer flows from natural language descriptions including triggers, actions, conditions, subflows, approval flows, notification flows, and data manipulation flows

Firwat Flow Generation op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Flow Generation besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Flow Generation an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Happy-Technologies-LLC/happy-platform-skills/tree/main/skills/genai/flow-generation an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Flow Generation benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Flow Generation benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Flow Generation domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Flow Generation gratis?

Jo. De Skill gëtt vum Happy-Technologies-LLC ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇