> This page is for SWML.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# Quickstart

> Deploy your first SWML script in minutes with this step-by-step guide

This guide will walk you through deploying your first SWML script to handle incoming calls. By the end of this quickstart, you'll have a working phone number that runs your SWML application.

## Prerequisites

Before you begin, make sure you have:

* A [SignalWire account](https://signalwire.com/signups/new)
* A SWML script ready for deployment

## Deploy your SWML script

### Create new script

From your [SignalWire Dashboard](https://my.signalwire.com),
click **Script**, then **SWML script**.
This will open the New SWML Script dialog box.

Paste your SWML Script into the Primary Script field, then select **Create**.

If necessary, copy and paste the below example script:

#### YAML

```yaml
version: 1.0.0
sections:
  main:
    - answer: {}
    - play:
        url: "say:Hello World!"
    - play:
        url: "say:Congratulations on successfully deploying your script!"
    - hangup: {}
```

#### JSON

```json
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "answer": {}
      },
      {
        "play": {
          "url": "say:Hello World!"
        }
      },
      {
        "play": {
          "url": "say:Congratulations on successfully deploying your script!"
        }
      },
      {
        "hangup": {}
      }
    ]
  }
}
```

Your script will be saved in the "My Resources" section under "Scripts".

It will remain housed here under the name you provide for easy reference.

### Assign a phone number

* Navigate to **Phone Numbers** in your Dashboard.
* Purchase a phone number if needed by clicking the "+ New" button in the top right hand corner of the page.
* Click on your phone number, then click "Edit Settings".
* Click on "+ Assign Resource", then assign your SWML Script.

### Test your application

Call your assigned phone number to test your SWML application.

## Next steps

Now that you've deployed your first SWML script, explore these resources:

#### [Methods reference](/docs/swml/reference)

Explore all available SWML methods

#### [SWML AI guides](/docs/swml/guides)

Learn how AI methods are used in SWML

#### [Deployment](/docs/swml/guides/deployment)

Learn about deploying SWML via your own web server

#### [Server SDK quickstart](/docs/server-sdks/guides/quickstart)

Get started with the Server SDK