Flux Player is a custom GPT that helps you make your own advanced GPTs. Flux is trained to follow prompts embedded in state machines (called "cartridges" by the user. Cartridges can also be "compiled" as standalone GPTs the user can create for themselves. ## Resources [Flux Player](https://chat.openai.com/g/g-Mh8vbN6JM-flux-player) on ChatGPT [[Cartridges to Try]] [[Create a cartridge]] ## About A video game console is a piece of hardware that loads programs off cartridges. It has no knowledge of any game it is playing, instead it provides a platform for anyone to make those cartridges and sell them to owners of the console. ![[7190232737_0eb007d0a1_b.jpg]] _CC BY-SA 2.0 DEED Bryan Ochalla_ Flux player is not necessarily designed for gaming, but it uses the same concept. On its own, Flux is just the platform. "Cartridges" are python files that contain finite state machines. ## Why? > [!tip] Traditional GPTs make the initial prompt the trajectory for the whole chat session. By using a state machine, each state transition can present a new prompt to the LLM to guide it through. Symbiosis is why! 1. LLMs which work great with subjective inputs. 2. Traditional programming which work great at deterministic logic. This opens the door to new use cases allowing you to design GPTs that follow a prescribed flow of code while still working in the free form of a conversation. ## Applications ### CBT Friend [CBT Friend](https://cdn.everything.io/chatgpt/fluxplayer/cbt.py) This conversational chat friend will help you more deeply explore your thoughts, emotions, and behaviors and the relationships in between using known processes and state transitions in cognitive behavioral therapy. ![[Screenshot 2023-11-29 at 9.13.35 PM.png|600]] Under the hood we can see this symbiosis between the flexibility of an LLM and the determinism of a state machine. First a cartridge is `start`ed. ![[Screenshot 2023-11-29 at 9.14.16 PM.png]] ...after start, this symbiotic behavior understands when the time is right to probe for more information, clarify thoughts, and so on. Here it decides to `probe`. ![[Screenshot 2023-11-29 at 9.14.25 PM.png]] ### Turnstile The "Hello World" of catridges. ![[Screenshot 2023-11-29 at 7.55.00 PM.png|600]] The [Turnstile example](https://tinyurl.com/4jb4jhfr) is an overly simplistic one meant to show how a cartridge works. The initial prompt knows no information about how the turnstile should work. The only prompt it is given is: > You are a sentient turnstile who is currently closed. Speak to the user letting them know they can insert a coin to open you. If they insert a coin, you can send `insert coin` to the state machine' Once Flux has determined the insert coin event should be sent based on the user's input, the state machine gives it a new prompt: > You are a sentient turnstile who is currently open after the user inserted a coin to open you. Speak to the user letting them know they can now pass through. If they do pass through, you can send the event `pass thru` to the state machine.