Chatbot survey - #200
Merged
Merged
Conversation
MJoaaquin
marked this pull request as draft
August 4, 2026 20:40
MJoaaquin
force-pushed
the
chatbot-survey
branch
from
August 10, 2026 22:51
2fc2850 to
7002ed3
Compare
MJoaaquin
force-pushed
the
chatbot-survey
branch
from
August 11, 2026 12:20
7002ed3 to
b61802c
Compare
MJoaaquin
force-pushed
the
chatbot-survey
branch
from
August 26, 2026 17:03
b61802c to
52df7c0
Compare
# Conflicts: # chatmap-api/main.py
MJoaaquin
marked this pull request as ready for review
September 1, 2026 02:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds per-map bot configuration. The bot is off by default: it sends nothing
until the map owner configures it and enables it for a live device.
With the bot enabled, when content arrives from a new mapper the bot guides them: it asks
for a photo/video/audio, asks for the location, and — if the owner configured them — runs a
survey of single-choice and free-text questions. Answers are stored per point
and shown in the map popup. After several invalid replies in a row, the bot offers to
cancel or restart the mapping.
How the bot gets enabled
maps.bot_activestarts asfalse. While it isfalse, thelistener does not even pick up that device's messages for the bot: only devices whose
live map has
bot_active = trueare processed./bot-setup/:id), reached via the robot button on each live map in the list. Non-livemaps have no bot.
configuration: the
PUTchecks that every message the bot needs is present and returns422if any is missing. A partial configuration can still be saved with the bot off.bot_active = trueand a completeconfiguration. Otherwise the message passes straight through to the pairing pipeline.
PUT /map/{id}/unlink/) turns offbot_activealong withis_live.