Chats con el asistente
Las conversaciones con el asistente en la aplicación.
Herramientas de chats con el asistente
| Herramienta | Qué hace |
|---|---|
| listChats | Los chats con el asistente en la aplicación, del más reciente al más antiguo, con sus títulos y cuántos mensajes tiene cada uno. query busca en los títulos. Se devuelven de página en página. |
| getChat | Un chat por su id. |
| renameChat | Dar un nuevo título a un chat. |
| deleteChat | Eliminar para siempre un chat y cada mensaje que contiene. Nada de lo que el asistente hizo en el buzón se deshace. |
Solo el propietario del espacio de trabajo llega a los chats, mediante un cliente conectado con todas las direcciones. Leer necesita threads:read y cambiar threads:write.
El asistente de la aplicación no tiene estas herramientas, así que un chat nunca se renombra ni se elimina a sí mismo.
Referencia
listChats
The conversations held with the assistant in the OpenEmail app, as its Chats page lists them, newest first, each with its title, id and how many messages it holds. query searches the titles. Only the workspace owner reaches them. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Entradas
querystring- Hasta 200 caracteres
sortstring- Uno de
"newest""oldest""title" limitinteger- Al menos 1Como máximo 100
cursorstring- De 1 a 2048 caracteres
También disponible en
getChat
One chat with the assistant by its id: its title, how many messages it holds and when it last changed.
Entradas
idstringObligatorio- No vacío
También disponible en
renameChat
Give a chat with the assistant a new title.
Entradas
idstringObligatorio- No vacío
titlestringObligatorio- De 1 a 120 caracteres
También disponible en
deleteChat
Delete a chat with the assistant and every message in it, for good. Nothing it did in the mailbox is undone. Ask the person first.
Entradas
idstringObligatorio- No vacío