Skip to content

Geographical Position Sender

Category: Geographical Position

Description: This extension module allows sending a geographical position event using the specified parameters. The visualization of this event may vary depending on the technological capabilities of each channel.

Functionality: Use this extension module to send the client's geographical location through different channels, automatically adjusting to the available technology of each. Depending on the channel's capabilities, the location can be displayed on a map, as coordinates, or in another compatible format.

Prerequisites

  1. Location

    • To implement this extension module, the location and its respective coordinates must be known. Follow these steps to obtain the information:

      a) Open Google Maps on your computer.

      b) Right-click on the place or area of the map.

      c) A pop-up window will appear, showing the latitude and longitude in decimal format at the top.

      d) To automatically copy the coordinates, left-click on the latitude and longitude values.

Implementation

Enter a description: Field where you should enter the description of the location. It can be entered as text within single quotes or through a variable.

Enter the address: Field where you should enter the address of the location. It can be entered as text within single quotes or through a variable.

Latitude: Field where you should enter the latitude of the location. It can be entered as text within single quotes or through a variable.

Longitude: Field where you should enter the longitude of the location. It can be entered as text within single quotes or through a variable.

Error Handling Intent: In case of error, the flow will be interrupted, and the error description will be passed to the selected intent named 'Geographical_Position_Error', which will contain error details if available.

Note: Please ensure that the Latitude and Longitude fields are in the format '-XX.XXXXXXX'.

Implementation Example

In the following example, a menu is implemented where the user selects the location they want to access. This is done in collaboration with the extension module Request Entity by Name, which will request the selection of an option. Based on the result, an evaluation will be performed through JavaScript Code Block, and then the Geographical Position Sender implementation will be applied.

Field Value
Name TestGeographical
Enter a description: geo1 --> 'E-Contact Chile'
Enter the address: geo2 --> 'Amunategui 232'
Latitude: geo3 --> -33.4408754
Longitude: geo4 --> -70.6586733
Error Handling Intent. If the action flow is interrupted, the error description will be passed to the selected intent with the name: 'Geographical_Position_Error': Error_Handler

Below is the result of the implementation of these extension modules together and their interaction with the Telegram channel: