OpenAI Assistant Detection

This action will forward any user text to an existing OpenAI assistant. The conversation will not hold and will continue with all other actions.

Settings

The action uses the following settings:

Setting

Description

OpenAI API Key

The API Key that you can generate in your OpenAI account

Assistant Id

The unique id of the trained assistant you wish to use

Auto-Generate Content

If enabled, Xenioo will generate the bubble with the content of the assistant reply

Split Paragraphs

If enabled, Xenioo will follow your assistant line break to generate multiple bubbles

React to Page Comments

If enabled, this action will be executed when a comment is added on the attached Facebook page

Post Id

The uinque id of the post associated to the reaction flag

Remarks

The assistant reply is returned to the chat (or to a variable) directly without any intervention of Xenioo on the content.

Conversation with the assistant will stay in thread, based on the openai_assistant_thread variale. If you wish to start a new thread just empty the variable before making a new request.

Depending on the OpenAI model, request complexity and OpenAI account level, replies might take more than 20 seconds to be generated.

Trigger

On Reply Received. This action will trigger any child operation as soon as the result is available. This trigger will not be executed if the "Auto-Generate Content" flag is enabled.

Variables

This action produces the following variables after being triggered:

Variable

Description

openai_assistant_thread

The thread id of the current conversation

openai_assistant_model

The LLM model used by the assitant

openai_assistant_raw_reply

The raw JSON reply of the last assistant request

openai_assistant_prompt_tokens

The number of prompt tokens used by the last request

openai_assistant_completion_tokens

The number of completion tokens used by the last request

Availability

Channel specific availability follows the table below:

Channel

Availability

Facebook

Fully Available.

WhatsApp

Fully Available.

Telegram

Fully Available.

Web

Fully Available.

Alexa

Not Available. Out of AI Detection is not supported inside skills.

Google Assistant

Fully Available.

Slack

Fully Available.

API

Fully Available.

This action can be used only at Bot Global level or Behavior level.

Last updated