+
+
+
+Clone the SignalWire Solutions repository, navigate to this example, and install.
+
+```bash
+git clone https://github.com/signalwire/cXML-realtime-agent-stream
+cd cxml-realtime-agent-stream
+npm install
+```
+
+
+
+
+
+}
+ >
+View the source code on GitHub
+
+
+
+
+
+
+### Add OpenAI credentials
+
+Select the **Local** or **Docker** tab below depending on where you plan to run the application.
+
+
+
+
+
+- Navigate to [My Resources][resources] in your Dashboard.
+- Click **Create Resource**, select **Script** as the resource type, and choose `cXML`.
+- Under `Handle Using`, select `External Url`.
+- Set the `Primary Script URL` to your server's **webhook endpoint**.
+
+Select the **Local** tab below if you ran the application locally, and the **Docker** tab if you're running it with Docker.
+
+
+
+
+
+
+
+
+
+
+
+