> This is a page from the ElevenLabs documentation. For an index of the documentation, fetch https://elevenlabs.io/docs/llms.txt.

# Reception API 빠른 시작

이 가이드에서는 [Reception API](/docs/ko/reception-ai/reception-api/overview)를 사용해 한 고객을 처음부터 끝까지 프로비저닝합니다. 유료 요금제의 워크스페이스, 리셉셔니스트가 답변에 활용할 비즈니스 프로필, 그리고 리셉셔니스트로 연결되는 전화번호를 설정합니다.

## 사전 요구 사항

* `ELEVENLABS_API_KEY`로 설정한 리셀러 관리자 패널의 API 키. 관리자 패널은 Reception.ai 파트너에게만 제공되며, 파트너가 되려면 [영업팀에 문의하세요](https://www.reception.ai/contact-sales).
* 리셀러 계정에 등록된 카드. 워크스페이스를 구독하면 카드로 청구됩니다.
* Python SDK(`pip install elevenlabs`) 또는 TypeScript SDK(`npm install @elevenlabs/elevenlabs-js`).

## 고객 프로비저닝

### 요금제 선택

판매할 티어를 나열합니다. 가장 저렴한 순으로 표시되며, 첫 번째 티어는 체험판입니다.

```python
from elevenlabs import ElevenLabs

elevenlabs = ElevenLabs()

tiers = elevenlabs.reception.tiers.list()
for tier in tiers:
    print(tier.tier_id, tier.display_name, tier.tier_economics.monthly_price_usd)
```

```typescript
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

const elevenlabs = new ElevenLabsClient();

const tiers = await elevenlabs.reception.tiers.list();
for (const tier of tiers) {
  console.log(tier.tierId, tier.displayName, tier.tierEconomics.monthlyPriceUsd);
}
```

```bash
curl "https://api.elevenlabs.io/v1/reception/reseller/tier-ladder" \
  -H "xi-api-key: $ELEVENLABS_API_KEY"
```

### 워크스페이스 생성

고객의 워크스페이스를 만들고, 유료 티어를 구독시키고, 비즈니스 소유자를 초대합니다. 초대는 최선의 노력으로 처리되며, 각 초대의 결과는 `member_results`에 있습니다.

```python
from elevenlabs import ProvisionResellerWorkspaceSubscription, TeamInviteRequest

workspace = elevenlabs.reception.workspaces.create(
    business_name="Bright Smile Dental",
    subscription=ProvisionResellerWorkspaceSubscription(
        tier_id=tiers[1].tier_id,
        billing_period="monthly_period",
    ),
    members=[
        TeamInviteRequest(email="owner@brightsmiledental.com", role="workspace_admin"),
    ],
)

workspace_id = workspace.workspace_id
```

```typescript
const workspace = await elevenlabs.reception.workspaces.create({
  businessName: "Bright Smile Dental",
  subscription: {
    tierId: tiers[1].tierId,
    billingPeriod: "monthly_period",
  },
  members: [{ email: "owner@brightsmiledental.com", role: "workspace_admin" }],
});

const workspaceId = workspace.workspaceId;
```

```bash
curl -X POST "https://api.elevenlabs.io/v1/reception/reseller/workspaces" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "business_name": "Bright Smile Dental",
    "subscription": { "tier_id": "smbtier_4401k8r2c6hxe9tq3vz7m5wd1nb0", "billing_period": "monthly_period" },
    "members": [{ "email": "owner@brightsmiledental.com", "role": "workspace_admin" }]
  }'
```

`subscription`을 생략하면 요금제 없이 워크스페이스를 만들고 [나중에 할당](/docs/ko/reception-ai/reception-api/subscriptions-and-billing#assign-a-plan)할 수 있습니다.

### 비즈니스 설명

리셉셔니스트는 비즈니스 프로필을 기반으로 답변합니다. 여기부터 모든 호출은 새 워크스페이스를 대상으로 하므로 `xi-workspace-id` 헤더를 포함합니다. `operating_hours`의 요일은 `0`(월요일)부터 `6`(일요일)까지이며, 항목이 없는 날은 휴무입니다.

```python
from elevenlabs import TimeRangeModel, WorkingHours

weekday = [TimeRangeModel(start_hour=8, start_minute=0, end_hour=17, end_minute=0)]

elevenlabs.reception.business_profile.update(
    xi_workspace_id=workspace_id,
    business_country="US",
    business_description="Family dental practice offering cleanings, fillings, crowns and teeth whitening.",
    timezone="America/Los_Angeles",
    operating_hours=WorkingHours(hours={str(day): weekday for day in range(5)}),
)

elevenlabs.reception.knowledge_sources.add_url(
    xi_workspace_id=workspace_id,
    url="https://brightsmiledental.com",
    crawl_entire_site=True,
)
```

```typescript
const weekday = [{ startHour: 8, startMinute: 0, endHour: 17, endMinute: 0 }];

await elevenlabs.reception.businessProfile.update({
  xiWorkspaceId: workspaceId,
  businessCountry: "US",
  businessDescription:
    "Family dental practice offering cleanings, fillings, crowns and teeth whitening.",
  timezone: "America/Los_Angeles",
  operatingHours: {
    hours: { "0": weekday, "1": weekday, "2": weekday, "3": weekday, "4": weekday },
  },
});

await elevenlabs.reception.knowledgeSources.addUrl({
  xiWorkspaceId: workspaceId,
  url: "https://brightsmiledental.com",
  crawlEntireSite: true,
});
```

```bash
curl -X PUT "https://api.elevenlabs.io/v1/reception/agent-info" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "xi-workspace-id: 8f1c2a7e4b9d4e6fa3c5b2d1e0f9a8b7" \
  -H "Content-Type: application/json" \
  -d '{
    "business_country": "US",
    "business_description": "Family dental practice offering cleanings, fillings, crowns and teeth whitening.",
    "timezone": "America/Los_Angeles",
    "operating_hours": {
      "hours": {
        "0": [{ "start_hour": 8, "start_minute": 0, "end_hour": 17, "end_minute": 0 }],
        "1": [{ "start_hour": 8, "start_minute": 0, "end_hour": 17, "end_minute": 0 }],
        "2": [{ "start_hour": 8, "start_minute": 0, "end_hour": 17, "end_minute": 0 }],
        "3": [{ "start_hour": 8, "start_minute": 0, "end_hour": 17, "end_minute": 0 }],
        "4": [{ "start_hour": 8, "start_minute": 0, "end_hour": 17, "end_minute": 0 }]
      }
    }
  }'

curl -X POST "https://api.elevenlabs.io/v1/reception/knowledge-sources/urls" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "xi-workspace-id: 8f1c2a7e4b9d4e6fa3c5b2d1e0f9a8b7" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://brightsmiledental.com", "crawl_entire_site": true }'
```

서비스, 직원, 위치 및 휴일도 `services`, `staff`, `locations`, `holidays` 그룹을 사용해 같은 방식으로 추가합니다.

### 온보딩 완료

온보딩을 완료하면 비즈니스 프로필을 기반으로 워크스페이스의 리셉셔니스트가 생성됩니다. 안전하게 재시도할 수 있습니다. 워크스페이스를 만들 때 `complete_onboarding=True`를 전달할 수도 있지만, 이 경우 리셉셔니스트는 비즈니스 이름만으로 생성됩니다.

```python
onboarding = elevenlabs.reception.workspaces.complete_onboarding(workspace_id)

receptionist_id = onboarding.customer_facing_agent_id
```

```typescript
const onboarding = await elevenlabs.reception.workspaces.completeOnboarding(workspaceId);

const receptionistId = onboarding.customerFacingAgentId;
```

```bash
curl -X POST "https://api.elevenlabs.io/v1/reception/reseller/workspaces/8f1c2a7e4b9d4e6fa3c5b2d1e0f9a8b7/complete-onboarding" \
  -H "xi-api-key: $ELEVENLABS_API_KEY"
```

### 리셉셔니스트에 전화번호 제공

미국과 캐나다에서는 요청한 지역 번호 중 하나를 가진 번호를 풀에서 가져오거나 구매합니다. 해당 번호가 없으면 비즈니스 소재 국가의 아무 번호로 대체됩니다.

```python
assignment = elevenlabs.reception.phone_numbers.create(
    xi_workspace_id=workspace_id,
    customer_facing_agent_id=receptionist_id,
    area_codes=["415", "628"],
)

print(assignment.phone_number)
```

```typescript
const assignment = await elevenlabs.reception.phoneNumbers.create({
  xiWorkspaceId: workspaceId,
  customerFacingAgentId: receptionistId,
  areaCodes: ["415", "628"],
});

console.log(assignment.phoneNumber);
```

```bash
curl -X POST "https://api.elevenlabs.io/v1/reception/phone-numbers/assignments" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "xi-workspace-id: 8f1c2a7e4b9d4e6fa3c5b2d1e0f9a8b7" \
  -H "Content-Type: application/json" \
  -d '{ "customer_facing_agent_id": "agent_7101k5zvyjhmfg983brhmhkd98n6", "area_codes": ["415", "628"] }'
```

이제 리셉셔니스트가 `phone_number`로 걸려 오는 전화를 받습니다.

## 다음 단계

* [프로비저닝 및 온보딩](/docs/ko/reception-ai/reception-api/provisioning-and-onboarding): 워크스페이스 생성 및 비즈니스 설명에 관한 추가 예시입니다.
* [구독 및 청구](/docs/ko/reception-ai/reception-api/subscriptions-and-billing): 고객의 요금제를 변경하고 카드 청구 내역을 확인합니다.