Secrets
Sometimes you might want to use APIs that require authentication with a secret key. You might also want to share your Charisma story without revealing this key to your collaborators.
Secrets can be defined by story managers in the story overview.

The secret values can then be accessed with await getSecrets()
in the function node.
Here's an example:
const secrets = await getSecrets();
const url = "https://example.com/news-today";
const response = await fetch(url, {
headers: {
Authorization: secrets.MY_API_KEY,
},
});
const result = await response.json();
await setMemory("todayHeadline", result.mainHeadline);