Utility Endpoints
Insert a nudge message into a conversation
POST
Insert a nudge message into a conversation
Inserts a nudge message into an ongoing conversation.Documentation Index
Fetch the complete documentation index at: https://docs.chatzy.ai/llms.txt
Use this file to discover all available pages before exploring further.
Nudge messages are designed to re-engage users by prompting them with a friendly reminder or question. Important:
Nudge messages that are sent while the AI Agent is generating a response will not be inserted into the conversation and will be ignored.
Usage Scenarios
1. Using Chatzy’s iframe as the UI
When you embed Chatzy’s iframe URL inside your application or website, you must send apostMessage to the iframe to insert a nudge message.
Example:
- The iframe id will be
chatzy-iframeif you are using the default embed code. - If you assign a custom id to the iframe, replace “chatzy-iframe” with your own iframe element’s ID.
- The iframe URL can be embedded inside any app or website and the mechanism remains the same.
postMessage is received, Chatzy AI internally calls this /insert_nudge_message endpoint on your behalf. You don’t need to call it directly in this case.
2. Using Your Own Custom UI
If you are not using Chatzy’s iframe but have built your own UI for conversations, you can insert the nudge message directly into your interface as you see fit. However, to keep Chatzy’s backend conversation history in sync, you must call this endpoint immediately after inserting the nudge into your UI.-
POST /insert_nudge_message - Request body:
Body
application/json
Response
200 - application/json
Nudge message inserted successfully
Example:
"Nudge message inserted successfully"
Insert a nudge message into a conversation