Conversation lifecycle
How a Zild conversation moves from ingestion to AI handling, human handoff, evaluation, reporting, and follow-up.
Lifecycle overview
A conversation starts when an external event enters Zild or when an authorized integration creates one proactively. From there, the configured agent, channel, queue, template, and checklist determine how the interaction is handled.
| Stage | What happens | API evidence to provide |
|---|---|---|
| Ingest | Zild receives email, audio, Teams transcript, proactive WhatsApp request, or phone-call request. | Channel, integration type, source identifier, participant, timestamp, and payload content. |
| Context | Zild links the event to the tenant, bot/agent, queue, checklist, user, and conversation type. | botId, channelId, queueId, checklistId, conversationType, and variables when needed. |
| Action | The configured AI agent can respond, start a workflow, create a record, or leave the item for human review. | Approved templates and trusted metadata instead of free-form operational decisions. |
| Handoff | If automation should not continue, the conversation remains visible to a queue or user. | liveAgent, queue assignment, user ownership, and conversation status. |
| Evaluation | Zild Insight or Coach can score, summarize, classify, and flag errors or low-confidence outcomes. | Checklist, transcript/audio/message content, call status, duration, sentiment, and evaluation status. |
| Follow-up | The platform can drive tasks, reports, CRM activity, or further contact depending on configuration. | Zild conversation ID, external IDs, tags, and source-system references. |
Records to store
Store the returned conversation.id whenever an endpoint returns a conversation object. For voice bridges, also store callSid. For imports, store the source file or transcript identifier in your own system so support teams can reconcile payloads later.
What not to send
Do not send API keys in payload bodies. Do not include secrets in contentVariables. Avoid sending data the configured agent does not need. When sensitive data is required, prefer server-to-server calls and keep logs redacted.
Chat, titles and menus
Use POST /api/Agent/run to start or continue a chat. The response includes conversationId, title, message IDs and reply. Send conversationId in subsequent interactions. Retrieve history with GET /api/Conversation/paged, GET /api/Conversation/{id} and GET /api/Message.
After the first interaction, the agent model generates and saves the conversation title. If generation fails or its quota is exhausted, the title remains “Nova conversa”. Older conversations are not backfilled. You can rename a conversation later.
ConversationDto.title identifies the conversation in queries. lastMessageContent was removed from the DTO; integrations should use title for the name and query messages when they need content. Title generation records usage and respects quotas.
Knowledge, Skills and Documents correspond to documented operations under /api/Knowledge, /api/Skill and /api/Document. Categories and chat rename/delete actions use application routes excluded from the public OpenAPI. Menu availability depends on the user role; see the Zild Chat guide.
Last-message preview
LastMessageContent is a preview derived from conversation messages. It is not a field for sending new text to an agent and does not replace reading the complete history.
Text whitespace is normalized and length is limited to 500 characters; longer messages end with an ellipsis. Audio, images, video, files, locations and contacts appear as [audio], [image], [video], [file], [location] and [contact]. These markers are not transcriptions, OCR or attachment analysis. Internal notes do not form the preview.
Older conversations may have no preview until a message is created or its content or type changes. Marking a message as read or only changing the title does not backfill this field. Stale conversation updates should not replace the preview calculated from messages.
Use the preview to locate a conversation. To audit an engineering decision, logistics incident or financial entry, open the corresponding messages and attachments and check their identifiers. An empty or shortened preview does not establish that no messages exist, that a process completed or that a person approved it.