ai_data.interaction.execute
Overview
- AI-data automation variant of interaction.execute. Supports an explicit play_reason and returns the queue result as structured data.
Metadata
| Field | Value |
|---|---|
| Display | Execute Interaction (AI Data) |
| Category | ai_data |
| Access | UserCheat |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Character entity ID that performs the interaction (default: possessed) |
| interaction_bag_id | name | yes | — | InteractionBag row name from data table (e.g. Sit, Talk, Cook) |
| target_entity_id | entityId | no | — | Target entity ID for the interaction (character or object) |
| smartzoi | bool | no | false | Mark the interaction as SmartZoi-sourced |
| play_reason | string | no | User | Interaction play reason: User, Cheat, or SmartZoi |
| insert_front | bool | no | false | Insert at front of interaction queue instead of back |
Returns
- Freeform result (shape is not fixed).
{ queue_result: int, queue_result_name: string }
Usage
await inzoi.cli.execute('ai_data.interaction.execute', {
entity_id: 0, // optional
interaction_bag_id: '',
target_entity_id: 0, // optional
smartzoi: false, // optional
play_reason: 'User', // optional
insert_front: false, // optional
});