---
title: "Update website chat prompt"
method: PUT
path: "/agents/{agentId}/chat-prompt"
tags: ["Agents"]
---

# Update website chat prompt

`PUT /agents/{agentId}/chat-prompt`

## Request

- Base URL: `https://api.telvana.com`
- URL: `https://api.telvana.com/agents/{agentId}/chat-prompt`
- Auth: API key in header `x-api-key`

Replace only the website chat prompt for an agent in the API key's workspace

## Path parameters

- `agentId` string, required

## Request body

- object
  - `chatPrompt` string, required: The new website chat prompt for the agent

## Response `200`

Chat prompt updated successfully

- object
  - `data` object, required
    - `id` string, required: Unique identifier for the agent
    - `chatPrompt` string, nullable, required: Prompt for website chat conversations
  - `message` string, required

## Other responses

- `400`: Bad request - Invalid input
- `401`: Unauthorized - Invalid API key
- `404`: Agent not found

---

[API](https://skmtc.dev/telvana/apis/telvana-api.md) · [All operations](https://skmtc.dev/telvana/apis/telvana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/telvana/apis/telvana-api/revisions/a70ff9063cdf?raw)
