[ Whitelist IP 주소 = 34.123.198.226 ] VoxAI IP 주소를 확인하고 허용 목록에 추가하여 보안을 강화할 수 있습니다.

1

서버 엔드포인트 설정

웹훅 요청을 수신할 HTTP/HTTPS 서버 엔드포인트를 생성합니다.

from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse
import os

app = FastAPI()

@app.post("/webhook")
async def handle_webhook(request: Request):
    try:
        data = await request.json()
        event = data.get("event")

        if event == "call_ended":
            print("통화 종료 이벤트:", data.get("call"))
        else:
            print("알 수 없는 이벤트", event)

        return JSONResponse(status_code=204)
    except Exception as err:
        print(err)
        return JSONResponse(status_code=500)
2

에이전트별 웹훅 등록

대시보드에서 [웹훅 설정] 탭의 통화 데이터 웹훅 URL 필드를 사용하여 URL을 설정합니다.


도움이 필요하신가요?