Streaming Hub 0.1

Use context storage in an automation

Read and update files inside an explicitly configured context root.

Alpha
IntermediateTwitchUpdated 2026-07-22

Before you start

  • Open application settings and enable the smallest required context root.
  • Use a relative path inside that root.
  • Test file-writing automations with non-sensitive data first.

Keep a rolling Twitch chat log

  1. Create an automation with a Twitch chat-message signal.
  2. Add Context: Append JSONL and set Path to Chat/LastMessages.jsonl.
  3. Use a JSON object such as {"user":"{event.contract.twitch.user.login}","message":"{event.contract.twitch.chat.text}","timestamp":"{event.timestamp}"}.
  4. Add Context: Trim JSONL with the same path and set Keep Last to the required history size.
  5. Test the signal and inspect the file through Data Explorer.

Keep session notes

  1. Create a project variable such as vars.sessionNote.
  2. Add Context: Append Line with Path set to Stream/SessionMemory.md.
  3. Use a line template such as [{event.timestamp}] {vars.sessionNote}.
  4. Add Context: Trim Text Lines when the file must remain bounded.

Store a viewer profile

  1. Use a Twitch signal that supplies event.contract.twitch.user.login.
  2. Add Context: Upsert JSON with a path such as Viewers/{event.contract.twitch.user.login}.json.
  3. Write stable keys such as lastSeenUtc or notes.
  4. Validate the resolved path and JSON before enabling the automation for live events.

Related