# notecard_create

Creates a notecard in the bot's inventory.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("notecard_create", [
  "folder", "b572d860-c5cf-e023-a6b2-408f30266acc",
  "name", "My new notecard",
  "description", "This is a test notecard description",
  "text", "Hello!\nThis is a new line but also the contents of my new notecard!"
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="notecard_create"
```

```snippet http-api-input-q5yvAagqsZ
folder      | optional | UUID of an inventory folder where the notecard will be created.<br>If left blank, the notecard will be created in the “Notecards” folder within your bot's inventory.
name        | yes      | Name of the notecard
description | optional | An optional description for the notecard
text        | yes      | The contents of the notecard
```

```snippet http-api-output-JAwUcmg7i7
uuid | The UUID of the newly created notecard
```

# Example

Create a notecard in the given folder UUID.

(The example uses the `smartbotsAPI()` helper function. Set your `apikey`, `botname`, and `secret` in that function.)

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("notecard_create", [
  "folder", "b572d860-c5cf-e023-a6b2-408f30266acc",
  "name", "My new notecard",
  "description", "This is a test notecard description",
  "text", "Hello!\nThis is a new line but also the contents of my new notecard!"
]);
```