Workflow Activities
This page lists the public workflow activities that are available in the platform.
Create Document Type From Interaction Run
createDocumentTypeFromInteractionRun
Parameters
CreateDocumentTypeFromInteractionRunParams
run
ExecutionRunThe execution run object to use. Required.
Not required in params since it is usually fetched
updateObjectId
optionalstringIf defined then update the object type with the created type
Returns
void
Create Or Update Document From Interaction Run
createOrUpdateDocumentFromInteractionRun
Parameters
CreateOrUpdateObjectFromInteractionRunParams
run_id
optionalstringThe execution run object to use. Required.
Not required in params since it is usually fetched
object_type
optionalstringThe document type to use. Required if update_existing_id is false.
Not required in params since it is usually fetched
update_existing_id
optionalstringThe id of the document to update. If not provided, a new document will be created
fallback_name
optionalstringparent
optionalstringReturns
void
Update Document From Interaction Run
updateDocumentFromInteractionRun
Parameters
UpdateDocumentFromInteractionRunParams
run
optionalExecutionRunThe execution run object to use. Required.
Not required in params since it is usually fetched
Returns
void
Chunk Document
chunkDocument
Parameters
ChunkDocumentParams
force
optionalbooleaninteractionName
optionalstringdocPartType
optionalstringReturns
Promise<ChunkDocumentResult>
Create Pdf Document From Source
createPdfDocumentFromSource
Create a new PDF by extrracting pages from a source PDF
@returns
Parameters
CreatePdfDocumentFromSourceParams
target_object_type
stringtitle
stringfilename
optionalstringpages
number[]parent
optionalstringReturns
void
Execute Interaction
executeInteraction
Parameters
ExecuteInteractionParams
interactionName
stringprompt_data
Record<string, any>truncate
optionalRecord<string, number | inline object>Returns
void
Extract Document Text
extractDocumentText
Parameters
ExtractDocumentTextParams
Returns
Promise<TextExtractionResult>
Generate Document Properties
generateDocumentProperties
Parameters
GenerateDocumentPropertiesParams
typesHint
optionalstring[]truncate
optionalnumber | inline objecttruncate the input doc text to the specified max_tokens
interactionName
optionalstringuse_vision
optionalbooleanReturns
void
Generate Embeddings
generateEmbeddings
Parameters
GenerateEmbeddingsParams
model
optionalstringenvironment
optionalstringforce
optionalbooleantype
SupportedEmbeddingTypestextimageproperties
Returns
void
Generate Image Rendition
generateImageRendition
Parameters
GenerateImageRenditionParams
max_hw
numberformat
Keyof FormatEnumavifdzfitsgifheifinputjpegjpgjp2jxlmagickopenslidepdfpngppmrawsvgtifftifvwebp
multi_page
optionalbooleanReturns
void
Generate Or Assign Content Type
generateOrAssignContentType
Parameters
GenerateOrAssignContentTypeParams
typesHint
optionalstring[]truncate
optionalnumber | inline objecttruncate the input doc text to the specified max_tokens
interactionNames
optionalinline objectThe name of the interaction to execute
@default SelectDocumentType
Returns
void
Notify Webhook
notifyWebhook
Parameters
NotifyWebhookParams
target_url
stringmethod
GET | POSTpayload
Record<string, any>headers
optionalRecord<string, string>Returns
void
Set Document Status
setDocumentStatus
We are using a union type for the status parameter since typescript enumbs breaks the workflow code generation
@param objectId
@param status
Parameters
SetDocumentStatusParams
status
ContentObjectStatuscreatedprocessingcompletedfailedarchived
Returns
void