DinastiAPI AI icon

DinastiAPI AI

Send WhatsApp messages using DinastiAPI - optimized for AI workflows

Overview

The "DinastiAPI AI" node integrates with the DinastiAPI service to interact with WhatsApp messaging and user data, optimized for AI workflows. It supports a wide range of operations including sending various message types (text, images, documents, audio, video, locations, contacts, stickers, buttons, lists, polls, links, status updates), retrieving session or user information, checking user existence, downloading avatars, and listing groups or newsletters.

For the Get User Info operation specifically, the node fetches detailed information about a WhatsApp user such as presence status, profile data, last seen time, and verification status. This is useful in scenarios where you want to enrich your workflow with contact details or verify user activity before sending messages.

Practical examples:

  • Automatically retrieve and display user presence and profile info in a CRM system.
  • Use user info to customize message content based on last seen or verification status.
  • Validate user details before initiating communication in automated customer support.

Properties

Name Meaning
Phone Number (userPhone) The phone number of the WhatsApp user in international format without the "+" sign. Required for fetching user info.
Optimize Response (optimizeResponse) Whether to optimize the API response to reduce token usage and improve AI processing. Only shown when used as a tool.
Max Response Length (maxResponseLength) Maximum number of characters allowed in the response; longer responses will be truncated. Shown if optimization is enabled.
Include Only Essential Fields (essentialFieldsOnly) Whether to include only essential fields in the response to reduce noise. Shown if optimization is enabled.
Response Format (responseFormat) How to format the response for optimal AI understanding. Options:
- Optimized: Clean, structured response.
- Raw: Complete raw API response.
- Summary: Brief summary with key info only.

Output

The node outputs JSON data containing the user information retrieved from the DinastiAPI endpoint /chat/user/info. The structure includes detailed user profile data such as presence, last seen, verification status, and other metadata.

If response optimization is enabled, the output may be truncated or filtered to include only essential fields or summarized according to the selected response format, which helps reduce payload size and improves processing efficiency in AI workflows.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the DinastiAPI service.
  • Needs an API authentication credential configured in n8n to authorize requests.
  • The node uses the /chat/user/info API endpoint to fetch user information.
  • No additional environment variables are required beyond standard API credentials.

Troubleshooting

  • Error: "Unknown operation" — Occurs if an unsupported operation name is provided. Ensure the operation is set to "Get User Info".
  • Error: Binary property not found — Not applicable for this operation but common in media sending operations; ensure correct binary property names if used elsewhere.
  • Empty or missing user data — Verify that the phone number is correctly formatted (international format without "+") and that the user exists on WhatsApp.
  • API request failures — Check API credentials and network connectivity to DinastiAPI.
  • Optimization issues — If response optimization truncates important data, try disabling it or adjusting max response length.

Links and References

  • DinastiAPI GitHub Repository — Official documentation and source code for the DinastiAPI service.
  • WhatsApp Business API concepts for user profiles and presence (general reference).

Discussion