upload_chat_assets
Last updated
Last updated
Upload chat assets to a project, optionally using a pre-defined conversation file and by integrating with an LLM.
chat_asset_creation_config: ChatAssetCreationConfig Configuration object for uploading chat assets. Includes:
project_id: str
The unique identifier for the project.
number_of_assets: int
Number of assets to create if no conversation file is provided.
Ignored if conversation_json
field is supplied.
storage_id: Optional[str]
ID of the storage integration to upload assets to. If not provided, assets will be uploaded to iMerit's private S3 bucket.
bucket_name: Optional[str]
The name of the S3 bucket to use for upload.
llm_config: Optional[LLMConfig]
Contains an id
field (string) identifying the LLM to use.
If not provided, the assets will be static.
conversation_json: Optional[str] Path to a JSON file containing pre-defined conversation data. If provided, the number of assets will be based on the JSON file's content. For the JSON format please see
output: dict JSON response from the server. Includes either:
assetsCreated: str
number of assets created
or error: details if the request failed
The upload configuration allows you to create chat assets in three different versions:
In addition to these, including storage_id
and bucket
information always allows you to upload the assets to your own storage, indifferent to what other settings are.
(pre-defined conversation data)
(LLM integration + fresh conversation)
(LLM integration + pre-defined conversation data)