# Send

> **Class** in `@langchain/langgraph`

📖 [View in docs](https://reference.langchain.com/javascript/langchain-langgraph/index/Send)

A message or packet to send to a specific node in the graph.

The `Send` class is used within a `StateGraph`'s conditional edges to
dynamically invoke a node with a custom state at the next step.

Importantly, the sent state can differ from the core graph's state,
allowing for flexible and dynamic workflow management.

One such example is a "map-reduce" workflow where your graph invokes
the same node multiple times in parallel with different states,
before aggregating the results back into the main graph's state.

## Signature

```javascript
class Send
```

## Implements

- `SendInterface<Node, Args>`

## Constructors

- [`constructor()`](https://reference.langchain.com/javascript/langchain-langgraph/index/Send/constructor)

## Properties

- `args`
- `lg_name`
- `node`
- `timeout`

## Methods

- [`toJSON()`](https://reference.langchain.com/javascript/langchain-langgraph/index/Send/toJSON)

## Examples

```typescript
import { Annotation, Send, StateGraph } from "@langchain/langgraph";

const ChainState = Annotation.Root({
  subjects: Annotation<string[]>,
  jokes: Annotation<string[]>({
    reducer: (a, b) => a.concat(b),
  }),
});

const continueToJokes = async (state: typeof ChainState.State) => {
  return state.subjects.map((subject) => {
    return new Send("generate_joke", { subjects: [subject] });
  });
};

@remarks
A per-task timeout can be supplied via the third argument's `timeout` option
to override the target node's configured timeout for this specific pushed task:
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraphjs/blob/b689df0c41d70d758ba72477a96de6afd23789cd/libs/langgraph-core/src/constants.ts#L280)