DinastiAPI AI icon

DinastiAPI AI

Send WhatsApp messages using DinastiAPI - optimized for AI workflows

Overview

The node "DinastiAPI AI" integrates with the DinastiAPI service to interact with WhatsApp messaging and session management. Specifically, the Get Status operation retrieves the current WhatsApp session connection status and health information. This is useful for monitoring whether the WhatsApp session is active, connected, or experiencing issues.

Common scenarios include:

  • Monitoring WhatsApp session health in automated workflows.
  • Triggering alerts or recovery actions if the session disconnects.
  • Integrating session status checks into broader communication automation pipelines.

Example: A business using WhatsApp for customer support can periodically check the session status to ensure messages are being sent and received without interruption.

Properties

Name Meaning
Optimize Response Whether to optimize the API response to reduce token usage and improve AI processing.
Max Response Length Maximum number of characters in the response; longer responses will be truncated.
Include Only Essential Fields Whether to include only essential fields in the response to reduce noise.
Response Format How to format the response for optimal AI agent understanding. Options:
- Optimized: Clean, structured response optimized for AI processing
- Raw: Complete raw response from the API
- Summary: Brief summary with key information only

These properties allow controlling how detailed and large the returned status data is, which is especially useful when integrating with AI agents or systems sensitive to payload size.

Output

The output JSON contains the WhatsApp session status and health information as returned by the DinastiAPI /session/status endpoint. The structure typically includes fields indicating connection state, session validity, and other metadata about the WhatsApp session.

If "Optimize Response" is enabled and the node is used as a tool, the output may be truncated or filtered to include only essential fields, marked with _aiOptimized: true and _truncated metadata describing the optimization.

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential for DinastiAPI configured in n8n.
  • Uses the DinastiAPI HTTP endpoints to fetch WhatsApp session status.
  • No additional environment variables are required beyond the API credential.

Troubleshooting

  • Error: Unknown operation: getStatus — Ensure the operation parameter is correctly set to "getStatus".
  • API request failures — Check that the DinastiAPI credential is valid and has proper permissions.
  • Empty or missing status data — Verify that the WhatsApp session is active and connected.
  • Binary property not found errors — Not applicable for Get Status operation but common in media sending operations; ensure correct binary property names if used elsewhere.

Links and References

Discussion