# Create a Slide Deck from a Topic Prompt

Let the API draft a deck outline from a high-level subject. Include `text` to set the audience, call-to-action, or structure, and toggle `slideDeckFormat` to control density.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "slide_deck",
    "topic": "Best practices for onboarding remote employees",
    "text": "Target startup HR teams with a concise 8-slide plan and one checklist slide.",
    "duration": "default",
    "slideDeckFormat": "presenter"
  }'
```

**Tips**

* Switch `slideDeckFormat` between `presenter` (lean slides plus notes) and `detailed` (heavier bullets per slide).
* Use `duration` (`short`, `default`, `long`) to stretch or compress the slide count and detail.
* Add a call-to-action in `text` to shape closing slides.

## Try it in code

* [C#](/code-samples/slide-decks/csharp/from-topic.md)
* [Node.js](/code-samples/slide-decks/nodejs/from-topic.md)
* [Java](/code-samples/slide-decks/java/from-topic.md)
* [PHP](/code-samples/slide-decks/php/from-topic.md)
* [Python](/code-samples/slide-decks/python/from-topic.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autocontentapi.com/quick-start/slide-decks/from-topic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
