Documentation
¶
Overview ¶
Package workflows provides a service for managing Intercom workflows.
Supports exporting workflow definitions for backup and migration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct {
ExportVersion string `json:"export_version"`
ExportedAt string `json:"exported_at"`
AppID int `json:"app_id"`
Workflow *Workflow `json:"workflow"`
}
Export represents a workflow export containing the complete workflow configuration.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles communication with the workflow related methods of the Intercom API.
func NewService ¶
NewService creates a new workflows service.
func (*Service) Export ¶
Export retrieves the complete workflow configuration by its ID.
See: https://developers.intercom.com/docs/references/rest-api/api.intercom.io/workflows/exportworkflow
func (*Service) ExportRaw ¶
ExportRaw retrieves the complete workflow configuration by its ID and returns the full HTTP result.
See: https://developers.intercom.com/docs/references/rest-api/api.intercom.io/workflows/exportworkflow
type Workflow ¶
type Workflow struct {
ID string `json:"id"`
Title string `json:"title"`
Description *string `json:"description"`
TriggerType string `json:"trigger_type"`
State string `json:"state"`
TargetChannels []string `json:"target_channels"`
PreferredDevices []string `json:"preferred_devices"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Targeting map[string]any `json:"targeting"`
Snapshot map[string]any `json:"snapshot"`
Attributes []map[string]any `json:"attributes"`
EmbeddedRules []map[string]any `json:"embedded_rules"`
}
Workflow represents a workflow configuration.