---
title: "Use AI to set character idle and facial expression for a node"
method: POST
path: "/api/ai/{simulationId}/set-character-idle-and-expression"
tags: ["AI"]
deprecated: true
---

# Use AI to set character idle and facial expression for a node

`POST /api/ai/{simulationId}/set-character-idle-and-expression`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/ai/{simulationId}/set-character-idle-and-expression`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

> **Deprecated.**

## Path parameters

- `simulationId` string, uuid, required: A valid GUID

## Request body

- AISetIdleAndExpressionDto
  - `nodeId` string, required
  - `nodeText` string, required
  - `characterId` string, required
  - `includeGestures` boolean, required
  - `isFirstNode` boolean, required
  - `animationContext` 'None' | 'Conversation' | 'Monologue', required

## Response `200`

OK

- string

## Other responses

- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
