Class: AiAgentInstructionReference
Hierarchy
AiAgentInstructionReference
Methods
delete
▸ delete(): Promise
<void
>
Deletes an existing instruction entry on the chatbot profile. This will result in an error if an entry has not yet been created for the current instruction id.
Returns
Promise
<void
>
A promise that resolves when the instruction is successfully deleted.
insert
▸ insert(data
): Promise
<void
>
Adds a new instruction entry to the chatbot profile. This will result in an error if an entry already exists with the same id.
Parameters
Name | Type | Description |
---|---|---|
data | InstructionData | An object containing options for creating the entry. |
Returns
Promise
<void
>
A promise that resolves when the instruction is successfully created.
update
▸ update(data
): Promise
<void
>
Updates an existing instruction entry on the chatbot profile. This will result in an error if an entry has not yet been created for the current instruction id.
Parameters
Name | Type | Description |
---|---|---|
data | InstructionData | An object containing options for updating the entry. |
Returns
Promise
<void
>
A promise that resolves when the instruction is successfully updated.