task icon Task

Generate Gamma

2
instruction icon Confirm the markdown content to use. If user provided a file path, read that file. If they pasted content, use it directly. Summarize what will be generated.
3
instruction icon Confirm the format (presentation, document, social, webpage). If not specified, ask. Suggest number of cards based on content length.
5
instruction icon Share the Gamma URL with the user. Explain they can view, edit, or export from there. Offer to generate another version with different settings.
                    To run this task you must have the following required information:

> Markdown content (text or file path). Output format (presentation, document, social, webpage). Optionally: number of cards, tone, audience, language.

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple read steps in a row, read them all at once (in parallel).

Add all steps to your todo list now and begin executing.

## Steps

1. [Read Gamma Generation Rules]: Read the documentation in: `./skills/sauna/[skill_id]/resources/context/media.gamma.rules.md` (Load generation guidance)

2. Confirm the markdown content to use. If user provided a file path, read that file. If they pasted content, use it directly. Summarize what will be generated.

3. Confirm the format (presentation, document, social, webpage). If not specified, ask. Suggest number of cards based on content length.

4. [Gather Arguments: Create Gamma] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `content`: the markdown content
- `format` (default: "presentation"): format (presentation, document, social, or webpage)
- `numCards` (default: "10"): number of cards (default 10)
- `tone` (default: "professional"): tone if specified, otherwise professional
- `audience`: audience if specified, otherwise empty
- `language` (default: "en"): language code if specified, otherwise en

5. [Run Code: Create Gamma]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.gamma.create/preview,
    "args": [
      "content",
      "format",
      "numCards",
      "tone",
      "audience",
      "language"
    ]
  },
  "packages": null
}
```

6. Share the Gamma URL with the user. Explain they can view, edit, or export from there. Offer to generate another version with different settings.