State Machine Diagrambehavior/uml_state_machine_diagram.puml

Captures state transitions for the transcript to HubSpot pipeline with states for request handling, processing, reporting, and failure handling.

Highlights

Key Components

Diagram Source

@startuml
[*] --> Idle

state Idle {
  [*] --> AwaitingRequest
  AwaitingRequest --> ProcessingTranscript : request arrives
}

state ProcessingTranscript {
  [*] --> GeneratingSample
  GeneratingSample --> ExtractingItems : success
  ExtractingItems --> CreatingHubSpotTasks : items parsed
  CreatingHubSpotTasks --> DeletingDeals : tasks persisted
  DeletingDeals --> Reporting : deletion finished
  Reporting --> Idle : response sent
}

state ErrorHandling {
  [*] --> Logging
  Logging --> Idle : fallback response
}

CreatingHubSpotTasks --> ErrorHandling : HubSpot error
GeneratingSample --> ErrorHandling : OpenAI timeout
ExtractingItems --> ErrorHandling : parse failure
DeletingDeals --> ErrorHandling : deletion failure

note right of ProcessingTranscript
  Represents the sequential stages the flow moves through.
end note

@enduml

Guidance

Use this diagram when jumping into the State Machine Diagram context or when you need to explain the state machine diagram interactions.