---
title: Generating a New Output
slug: api-docs-v1/generating-a-new-output
docTags: 
createdAt: 2025-08-27T12:20:06.778Z
---

When we are generating a new output we need to send the output name of the template we would like to generate to the sdk using the <font color="#EF4444">`.generateNewOutput("myOutput")`</font> method. Generating a new output will automatically adjust the <font color="#EF4444">`availableOutputs`</font> you get from the SDK, it is good practice to always refer to that method if any outputs have been generated. Assuming you have completed [Getting Available Output Types](docId\:QL6tNbrCaF5Vz3ygSdRCx), you can continue by doing the following:

::::CodeDrawer{title=".generateNewOutput(&#x22;myOutput&#x22;)" isResponseExpanded="true" autoGeneratedAnchorSlug="generatenewoutputmyoutput" legacyHash="wfm92N8l4EyG-7BcV6hxT"}
:::CodeblockTabsExamples
```javascript
scribe.generateNewOutput(availableTemplates[0]); 
//For demo purposes just default to first available template
```
:::

:::CodeblockTabsResponses
```javascript
```
:::
::::

