Skip to content

Instantly share code, notes, and snippets.

@hdavidzhu
Created August 27, 2015 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdavidzhu/5d24f5b29da6434cf0a8 to your computer and use it in GitHub Desktop.
Save hdavidzhu/5d24f5b29da6434cf0a8 to your computer and use it in GitHub Desktop.
// This is the key as well as the cardID.
"id_31f6e7046976d442": {
cardID: "id_31f6e7046976d442",
// These are antiquated terms that are relics of the tree design.
// Since we are now using a directed graph, these should be called
// lastCardIDs and nextCardIDs in the future.
parentCardIDs: [],
childrenCardIDs: [],
// `speaker` can be `client`, `ai`, or in the future - usernames / names.
// With the speaker as the client, this card is meant to be editable.
speaker: "client",
// Tells our programs to render and treat the following as an email.
// This is how we can render and edit cards properly on the client.
cardType: "email",
// The bulk of our card. This will contain the data that will be properly
// treated based on the `cardType`.
cardBody: {
// `messages` is blank here because it will be filled in by the client.
message: "",
}
// Relays what can be modified. This is specific to `client` related cards.
inputs: ["message"],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment