---
title: "Update Message Generation Context"
method: PATCH
path: "/developer/message-generation-context"
tags: ["Developer", "Developer - Settings"]
---

# Update Message Generation Context

`PATCH /developer/message-generation-context`

Update the message generation context for the current customer.

This endpoint is restricted to developer users only.
Sets the optional context that is included in the LLM prompt when generating messages.

- **message_generation_context**: Context to include in the LLM prompt (can be multiple lines)

This context can include:
- Firm-specific preferences for message formatting
- Important information about the firm
- Instructions for how messages should be generated
- Any other context that should influence message generation

## Request body

- UpdateMessageGenerationContextRequest — Request to update customer's message generation context
  - `message_generation_context` string, nullable — Context to include in LLM prompt for message generation (can be multiple lines)

## Response `200`

Successful Response

- MessageGenerationContextResponse — Response with customer's message generation context
  - `customer_id` string, uuid, required — The customer ID
  - `message_generation_context` string, nullable — Optional context to include in LLM prompt for message generation

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
