JavaScript & TypeScript
Generate Text
Generate text responses for your workflows.
Usage
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
input | string | Yes | The input text to generate a response for. |
workflowSlug | string | No | The slug of the workflow to use for generation (not required if you’re using a threadId). |
threadId | string | No | Identifier for associating runs with a conversation thread. |
attachments | Attachment[] | No | Array of attachments to include in the generation. |
Return Value
The generateText
method returns the following object: