Actions5
- Message Actions
- Session Actions
- AI Actions
AI → Send Prompt
AI-generatedSummary
Send a prompt to the AI resource, optionally with system prompt, temperature, token limits, and conversation history, returning the AI response via the node's main output.
Inputs
- prompt (required) — The prompt text to send to the AI (max 10,000 characters)
- system_prompt — Optional system prompt to guide AI behavior (max 2,000 characters)
- max_tokens — Maximum tokens in the response (1-4000, default 2000)
- temperature — Creativity level (0.0-2.0, default 0.7). Higher = more creative
- include_conversation_history — Include previous conversation history for better context awareness
- session_id (required) — Session ID for retrieving conversation history (required when conversation history is enabled)
- contact_id (required) — Contact ID for retrieving conversation history (required when conversation history is enabled)
- requestOptions — Optional request configuration for proxy, timeout, SSL, and batching.
Output shape
The AI response data is emitted on the node's main output, shaped by the underlying AI integration.
Conversation history is retrieved using session_id and contact_id when include_conversation_history is enabled. WhatsApp CRM API credential is required for execution.
Examples
Example 1: Send a professional email inquiry to AI
prompt: Write a professional email response to a customer inquiry about our product pricing. temperature: 0.7 max_tokens: 2000