> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Find First Matching Conversation Item

> Documentation for the Find First Matching Conversation Item action for Spruce

![images/spruce.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/spruce.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=8a74ebc9757cf4bfebab7b5e33a27182)

# Parameters

**Action** `Parameters`

**parameters**

**Conversation IDs** `[]string` *required*

This field maps to the destination API `conversationId (queried sequentially)` field.

**Substring To Find** `string` *required*

This field maps to the destination API `text` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "conversation_id": "conv_12345",
    "created_at": "2025-01-15T13:12:41Z",
    "id": "item_12345",
    "is_internal_note": false,
    "text": "Hello, how can I help you today?"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "conversation_id": "ID of the conversation this item belongs to.",
    "created_at": "Timestamp when the conversation item was created.",
    "id": "Unique identifier for the conversation item in the Spruce system.",
    "is_internal_note": "Whether this is an internal note (not visible to patients).",
    "text": "Text content of the conversation item."
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**ConversationItemTextSummary** `Fetch Action Response Object`

**fields**

**id** `string` *required*

`ID` Unique identifier for the conversation item in the Spruce system.

```json CEL theme={null}
$result_object_key.id
```

```json Example theme={null}
"item_12345"
```

**conversation\_id** `string` *required*

`ID` ID of the conversation this item belongs to.

```json CEL theme={null}
$result_object_key.conversation_id
```

```json Example theme={null}
"conv_12345"
```

**text** `string` *required*

Text content of the conversation item.

```json CEL theme={null}
$result_object_key.text
```

```json Example theme={null}
"Hello, how can I help you today?"
```

**created\_at** `timing.v1.Timestamp` *required*

Timestamp when the conversation item was created.

```json CEL theme={null}
$result_object_key.created_at
```

```json Example theme={null}
"2025-01-15T13:12:41Z"
```

**is\_internal\_note** `bool` *required*

Whether this is an internal note (not visible to patients).

```json CEL theme={null}
$result_object_key.is_internal_note
```

```json Example theme={null}
false
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.