WhatsApp CRM
Actions3
- Message Actions
- AI Actions
Overview
This node integrates with a WhatsApp CRM API to provide AI-powered text generation capabilities. Specifically, the "Send Prompt" operation under the "AI" resource allows users to send a textual prompt to an AI service and receive a generated response. This is useful for automating customer support replies, generating content, drafting professional emails, or any scenario where AI-generated text can assist communication workflows.
For example, a user could input a customer inquiry as a prompt and receive a polished, context-aware email response drafted by the AI. Another use case might be generating creative marketing messages or summarizing conversations automatically.
Properties
| Name | Meaning |
|---|---|
| Prompt | The main text prompt sent to the AI for generating a response. Maximum length: 10,000 characters. Example: "Write a professional email response to a customer inquiry about our product pricing." |
| System Prompt | An optional guiding prompt that sets the AI's behavior or persona. Maximum length: 2,000 characters. Example: "You are a helpful customer service representative for a SaaS company." |
| Max Tokens | The maximum number of tokens (words/pieces) the AI should generate in its response. Range: 1 to 4000. Default is 2000. |
| Temperature | Controls creativity/randomness of the AI output. Range: 0.0 (more deterministic) to 2.0 (more creative). Default is 0.7. |
Output
The node outputs JSON data containing the AI-generated text response based on the provided prompt(s). The exact structure typically includes fields such as the generated text content. There is no indication that this node outputs binary data.
Dependencies
- Requires connection to the WhatsApp CRM API endpoint configured via credentials.
- Needs an API key or authentication token for the WhatsApp CRM API.
- The base URL for the API must be set in the node credentials.
- The AI functionality depends on the external AI service integrated into the WhatsApp CRM API.
Troubleshooting
- Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Exceeding the max tokens limit or prompt length may result in errors from the AI service.
- Network connectivity problems can prevent requests from completing.
- Error messages:
- Authentication errors: Check that the API key/token is correctly configured.
- Request validation errors: Ensure prompt lengths and max tokens are within allowed ranges.
- Timeout or network errors: Verify internet connection and API availability.
Links and References
- No direct links available from the source code.
- For more details, consult the WhatsApp CRM API documentation and the AI service provider’s guidelines on prompt formatting and token limits.