> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# createSimpleContext

> Helper function to create a standalone Context without a ContextBuilder.

[context]: /docs/server-sdks/reference/typescript/agents/context-builder/context

[contextbuilder]: /docs/server-sdks/reference/typescript/agents/context-builder

Helper function that creates a standalone [`Context`][context] object without
requiring a [`ContextBuilder`][contextbuilder]. Useful for quick prototyping or
when you need a single context outside of the builder pattern.

<Note>
  This is a module-level function, not a method on `ContextBuilder`. Import it
  directly: `import { createSimpleContext } from '@signalwire/sdk';`.
</Note>

## **Parameters**

<ParamField path="name" type="string" default="default" toc={true}>
  Context name. Defaults to `"default"`, which is the required name for
  single-context agents.
</ParamField>

## **Returns**

[`Context`][context] -- A new Context object ready for adding steps.

## **Example**

```typescript {3}
import { createSimpleContext } from '@signalwire/sdk';

const ctx = createSimpleContext();
ctx.addStep('greet').setText('Welcome the caller and ask how you can help.');
ctx.addStep('farewell').setText('Thank the caller and end the conversation.');
```