Use GenAI Models
These actions provide ability to use GenAI models from various providers.
Use GenAI Models Actions
LLMChat
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"description": "ID of the model to use",
"examples": ["chatgpt_chat"],
"default": null
},
"inputElement": {
"type": "string",
"description": "Json path for the input in request event payload",
"examples": ["message"],
"default": null
},
"outputElement": {
"type": "string",
"description": "Json path for the output in response event payload",
"examples": ["output"],
"default": null
}
}
}
}
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"chat": {
"type": "string",
"description": "ID of an ongoing chat for an assistant type use case with memory",
"examples": ["test-chat"],
"default": null
},
"message": {
"description": "A text message or an object representing complex chat contents",
"default": null,
"oneOf": [
{
"type": "string",
"examples": ["Hello"]
},
{
"type": "object",
"examples": [
{
"text": "Can you describe this image",
"imageBase64": "base64"
}
],
"properties": {
"text": {
"type": "string",
"description": "Text part of the user message",
"examples": ["Hello"],
"default": null
},
"textFile": {
"type": "string",
"description": "URI of a user message stored as a file",
"examples": ["https://example.com/message.txt"],
"default": null
},
"image": {
"type": "string",
"description": "URI of an image attachment, can be URL or data URI",
"examples": ["data:image/png;base64,iVBORw0KGgoAAAANSUhE..."],
"default": null
},
"imageBase64": {
"type": "string",
"description": "Base64 data of an image attachment",
"examples": ["iVBORw0KGgoAAAANSUhE..."],
"default": null
},
"imageBase64Mime": {
"type": "string",
"description": "Mime type of base64 image",
"examples": ["image/jpg"],
"default": null
},
"pdf": {
"type": "string",
"description": "URI of a PDF attachment",
"examples": ["https://example.com/file.pdf"],
"default": null
},
"pdfBase64": {
"type": "string",
"description": "Base64 data of a PDF attachment",
"examples": ["iVBORw0KGgoAAAANSUhE..."],
"default": null
},
"audio": {
"type": "string",
"description": "URI of an audio attachment",
"examples": ["https://example.com/audio.mp3"],
"default": null
},
"audioBase64": {
"type": "string",
"description": "Base64 data of an audio attachment",
"examples": ["iVBORw0KGgoAAAANSUhE..."],
"default": null
},
"video": {
"type": "string",
"description": "URI of a video attachment",
"examples": ["https://example.com/video.mp4"],
"default": null
},
"videoBase64": {
"type": "string",
"description": "Base64 data of a video attachment",
"examples": ["iVBORw0KGgoAAAANSUhE..."],
"default": null
}
}
}
]
},
"messages": {
"type": "array",
"description": "Array of message entries",
"default": null,
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Text part of the user message",
"default": null
}
}
}
},
"prompt": {
"type": "string",
"description": "ID of the prompt to generate an additional text based user message",
"examples": ["search-prompt"],
"default": null
},
"input": {
"type": "object",
"description": "Data input elements to be used for populating prompt",
"examples": [{"search": "keyword"}],
"default": null
}
}
}Parameter
Definition
Example
Default
LLMGenerateImage
Field
Definition
Example
Default
Parameter
Definition
Example
Default
LLMEditImage
Field
Definition
Example
Default
Parameter
Definition
Example
Default
Last updated
