# `Codex.Voice.SimpleWorkflow`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/voice/simple_workflow.ex#L1)

A simple workflow that uses a function to process transcriptions.

## Example

    workflow = SimpleWorkflow.new(fn text ->
      ["You said: #{text}"]
    end)

    pipeline = Pipeline.new(workflow: workflow)

# `handler`

```elixir
@type handler() :: (String.t() -&gt; Enumerable.t())
```

# `t`

```elixir
@type t() :: %Codex.Voice.SimpleWorkflow{
  greeting: String.t() | nil,
  handler: handler()
}
```

# `new`

```elixir
@spec new(
  handler(),
  keyword()
) :: t()
```

Create a new simple workflow.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
