Automations · Nodes · logic
Wait for location
logic.wait_for_location · logic
Pause until the contact shares a location pin. Free text does not resume (unless onMismatch cancel_and_reroute).
When to use
- Unexpected inbound while waiting uses Wait Mismatch onMismatch (see Wait Mismatch guide).
- Pause until the contact shares a location pin (not free text).
- Prefer Ask location when you also need to send the prompt.
Configuration
| Field | Required | Notes |
|---|---|---|
| channelType | no | whatsapp or appchat |
| accountId | no | Channel account; leave empty to use context when available |
| timeoutSeconds | no | Wait timeout in seconds (default 86400) |
| onMismatch | no | Wait Mismatch: nudge | clarify | answer_then_remind | cancel_and_reroute (free text does not resume unless cancel) |
| mismatchClarifyText | no | Clarify / custom text when onMismatch=clarify (expressions; {{vars.mismatchText}}) |
| mismatchMaxSideReplies | no | Cap AI side replies for answer_then_remind; then falls back to nudge-only |
Inputs
Upstream node output and execution context (contact, account, variables).
Outputs
After the customer shares a pin (or timeout): latitude, longitude, name, address, inboundMessageId, timedOut. Insert value paths use nodes.{id}.*.
Execute step (editor)
| Eligible? | Notes |
|---|---|
| Disabled | Needs multi-branch or wait/resume context — use a full Test run. |
See Test, Execute, debug, listen and limitations.
Common errors
| Symptom | Cause | Fix |
|---|---|---|
| Step failed | Missing context or invalid config | Check required fields, pins, and Executions error + Suggested action. |
Example
Ask or prompt for location → Wait for location → use latitude/longitude in HTTP or branching.