# parseExtractionResponse

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/services/business-context-extractor.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/services/business-context-extractor.ts#L76)

Parse the AI response into a BusinessContext object.
Handles JSON extraction from various response formats (raw, code blocks, wrapped).

## Signature

```ts
function parseExtractionResponse(response: string, sources: ContextSource[], rawText: string): BusinessContext
```

## Parameters

| Name | Type |
|---|---|
| `response` | `string` |
| `sources` | `ContextSource[]` |
| `rawText` | `string` |

**Returns:** `BusinessContext`
