Actions12
- Chat Actions
- Session Actions
- Webhook Actions
Chat → Send Location
AI-generatedOverview
The node enables sending a location message via the StevoChat API within a chat conversation. It is useful for scenarios where you want to share geographic coordinates (latitude and longitude) with a contact through a messaging platform integrated by StevoChat. For example, a delivery service could use this node to send the current location of a driver to a customer, or a support agent might share a meeting point with a client.
Properties
| Name | Meaning |
|---|---|
| Phone | The recipient's phone number including country code. |
| Latitude | The latitude coordinate of the location to send. |
| Longitude | The longitude coordinate of the location to send. |
| ID (Optional) | An optional message ID to uniquely identify the sent location message. |
Output
The output is a JSON array containing the response from the StevoChat API after sending the location message. This typically includes confirmation details such as message status or identifiers returned by the API. The node does not output binary data for this operation.
Dependencies
- Requires an active connection to the StevoChat API.
- Needs an API authentication token configured in the node credentials to authorize requests.
- The node uses HTTP POST requests to the
/chat/send/locationendpoint of the StevoChat API.
Troubleshooting
- Common issues:
- Invalid or missing phone number format may cause the API to reject the request.
- Incorrect latitude or longitude values (e.g., out of valid range) can lead to errors.
- Missing or invalid API credentials will prevent successful communication with the StevoChat API.
- Error messages:
- Errors returned from the API are passed through; typical messages might include "Invalid phone number" or "Unauthorized".
- To resolve, verify that the phone number includes the correct country code, check coordinate values, and ensure API credentials are correctly set up.
Links and References
- StevoChat API Documentation (replace with actual URL if available)