AIAI Actions
Custom Prompt
Send free-form AI instructions with full conversation context
The Custom Prompt action lets you write any instruction for the AI to follow. Unlike other text actions, it includes full conversation context — chat history and contact profile — so the AI can reference the entire conversation.
How to Use
- Open AI Actions → Custom Prompt
- Enter your custom instruction
- The AI processes your instruction with full conversation context
- The result streams into the editor in real-time
Example Prompts
| Prompt | Effect |
|---|---|
| "Draft a follow-up email about the refund" | Creates a follow-up based on conversation |
| "List all product names mentioned in this conversation" | Extracts information from chat history |
| "Write an apology for the shipping delay" | Generates context-aware apology |
| "Extract the customer's order number and address" | Pulls data from messages |
| "Rewrite as a numbered list" | Converts content to numbered steps |
| "Turn into bullet points" | Restructures as bulleted list |
Context Included
- Chat history — Recent messages labeled as customer or operator (system messages excluded)
- Contact profile — Customer profile fields are always included
- Knowledge base — Documents uploaded to the assistant
- Channel formatting — Response is formatted for the channel (Telegram HTML, WhatsApp markdown, or plain text)
Any {{variable}} placeholders in your text are preserved exactly as-is.
Empty Conversation
If the chat has no messages:
- With contact profile — The AI processes the prompt using profile context alone
- Without contact profile — Returns a "no context" error