---
title: ChartInvoke
description: "An invoke: a lent Agent, Effect or Machine, a minted Agent, or the kit's `gate` or `fail`."
---

# `ChartInvoke`

Type, in `@jr2/orchestrator/src/chart.ts`. The signature of an export, or a type that it names, names this type. The [Authoring surface](../authoring-surface.md) page lists each export. This type is not an export of `@jr2/orchestrator`, so a workflow module does not import it by name.

```ts
type ChartInvoke = {
  src: string;
  id?: string;
  input?: ChartValue;
  onDone?: ChartTransitions;
  onError?: ChartTransitions;
};
```

An invoke: a lent Agent, Effect or Machine, a minted Agent, or the kit's `gate` or `fail`.

**Fields**

- `src`: `string`
- `id` (optional): `string`
- `input` (optional): [`ChartValue`](type-chartvalue.md)
- `onDone` (optional): [`ChartTransitions`](type-charttransitions.md)
- `onError` (optional): [`ChartTransitions`](type-charttransitions.md)
