Hey Glide team and community — I’m building a custom OpenAI-powered chat system in Glide and I’ve hit a wall for over a week. Hoping someone can help me troubleshoot what’s wrong with my message history setup.
What I’m Building:
A chat assistant that uses Glide’s GPT block (Complete Chat with History) to let users have persistent conversations across sessions — like a mini ChatGPT clone.
- Each Session is one conversation.
- Each Message belongs to a Session.
- Assistant responses are saved as new rows, not just inline in the user’s message row.
The Problem:
Only the first message is ever REMEMBERED in the message history for GPT.
- All messages are showing in the chat view — so relations are working fine.
- BUT GPT only REMEMBERS the very first message.
- Every response it gives is as if it’s replying to message #1 — like it’s blind to the full thread.
This isn’t a display issue.
The visual chat log is perfect. The message history memory for GPT is what’s broken.
- No future user messages seem to be recognized.
- I know this because only the first message shows the user avatar; all others show a “?”.
- I confirmed that all messages are being saved with the correct Session ID.
- I also confirmed the GPT block is inside the detail screen of that Session row.
What I’ve Done So Far:
Sessions Table (my version of “Chats”):
Session ID(Row ID)User Email(set as row owner)Bot Email(pulled from Settings)SessionMsgs_Rel→ Relation toMessageswhereMessages.Session ID=Sessions.Session ID
Messages Table:
Content: user inputResult: assistant response (optional)Role:"user"or"assistant"Email: sender (either logged-in user or bot)Receiver Email: receiver (opposite party)Session ID: points to parent sessionTimestamp: sent time
→ Both Email and Receiver Email are Row Owners
GPT Block Setup (in Messages component):
- Message History:
SessionMsgs_Rel - Prompt: pulled from
Settings → Prompt - Message:
Content - Session ID: from current Session
- Result:
Result - Role:
"user" - Email:
App → User Email - Receiver Email: bot email (via lookup or single value)
GPT Submit Action:
- Complete Chat with History
- Then → Add Row to
Messageswith:
Content: ResultRole:"assistant"Email: bot emailReceiver Email: user emailSession ID: same sessionTimestamp: now
Navigation Logic:
When a session is tapped, I set the current session’s ID into a user-specific column to track active chat.
What I’ve Tried:
- Double-checked everything 100x over
- Verified GPT block is in the detail screen of
Sessions → SessionMsgs_Rel - Ensured roles are being set as
"user"and"assistant"in text (not capitalized) - Confirmed all Row Owner rules are applied correctly
- Checked that Submit action writes the assistant reply as a new row, not updating user row
- Tried logging and watching message flow — everything is saving as expected
What I Need:
- Is there something else Glide needs in the config for the GPT block to access multiple messages by Session ID?
- Is there a bug with the message history system only remembering the first message?
- Is there a better way to pass
Msgs_Relinto the GPT block for memory?
Screenshots / Reference:
Happy to provide screen recordings or screenshots if needed. This is a core part of my project, and it’s so close — but GPT just isn’t remembering the full message thread.
Appreciate any help —
Thank you so much in advance!