TheDocumentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Message variable exposes the last message sent by the user that triggered your workflow. It is ideal when you need to react to the text, attachments, or metadata of the incoming message.
Message structure
The object changes depending on the type of message you receive. Below you will find real examples returned by WhatsApp.Text
Audio
Audio is automatically transcribed when possible. You will receive both the file URL and the recognized text.
Image
Video
Location
File
Accessing the last message
You can access the message from any node with the syntax{{$message.property}}:
{{$message.type}}indicates the type (TEXT,IMAGE,AUDIO, etc.).{{$message.text}}returns the message content forTEXTtypes and the transcription forAUDIO.{{$message.mediaUrl}}exposes the URL of the attached file (image, audio, video, or document).{{$message.caption}}shows the additional text sent along with the file.{{$message.lat}}and{{$message.lng}}deliver the coordinates when the type isLOCATION.
Message in code nodes
Inside a code node, access each property with$message.get('property'):
Message always shows the most recent message the user has sent. If it is the first time the user writes, that first message will also be considered the “last message”.