개요
에이전트가 Stripe를 통해 결제, 구독 및 고객 청구 관리를 할 수 있도록 지원합니다. 고객 데이터 처리, 구독 관리, 상품 관리, 재무 거래 추적 등을 통해 AI 기반 자동화로 결제 워크플로를 효율화하세요.사전 준비 사항
Stripe 통합을 사용하기 전에 다음 사항을 확인하세요:- 활성 구독이 있는 CrewAI AMP 계정
 - 적절한 API 권한이 있는 Stripe 계정
 - 통합 페이지를 통해 Stripe 계정 연결
 
Stripe 통합 설정
1. Stripe 계정 연결
- CrewAI AMP 통합으로 이동합니다.
 - 인증 통합 섹션에서 Stripe를 찾습니다.
 - 연결을 클릭하고 OAuth 과정을 완료합니다.
 - 결제 처리에 필요한 권한을 부여합니다.
 - 통합 설정에서 Enterprise Token을 복사합니다.
 
2. 필수 패키지 설치
3. 환경 변수 설정
Agent(apps=[])와 함께 통합을 사용하려면 Enterprise Token으로 CREWAI_PLATFORM_INTEGRATION_TOKEN 환경 변수를 설정해야 합니다..env 파일에 추가하세요:
사용 가능한 도구
고객 관리
stripe/create_customer
stripe/create_customer
설명: Stripe 계정에 새로운 고객을 생성합니다.파라미터:
emailCreateCustomer(string, 필수): 고객의 이메일 주소name(string, 선택): 고객의 전체 이름description(string, 선택): 내부 참조용 고객 설명metadataCreateCustomer(object, 선택): 추가 메타데이터를 key-value 쌍으로 입력 (예:{"field1": 1, "field2": 2})
stripe/get_customer_by_id
stripe/get_customer_by_id
설명: Stripe 고객 ID로 특정 고객을 조회합니다.파라미터:
idGetCustomer(string, 필수): 조회할 Stripe 고객 ID
stripe/get_customers
stripe/get_customers
설명: 필터링 옵션과 함께 고객 리스트를 조회합니다.파라미터:
emailGetCustomers(string, 선택): 이메일 주소로 고객 필터링createdAfter(string, 선택): 이 날짜 이후 생성된 고객 필터링 (유닉스 타임스탬프)createdBefore(string, 선택): 이 날짜 이전 생성된 고객 필터링 (유닉스 타임스탬프)limitGetCustomers(string, 선택): 반환할 최대 고객 수 (기본값 10)
stripe/update_customer
stripe/update_customer
설명: 기존 고객의 정보를 업데이트합니다.파라미터:
customerId(string, 필수): 업데이트할 고객의 IDemailUpdateCustomer(string, 선택): 업데이트할 이메일 주소name(string, 선택): 업데이트할 고객 이름description(string, 선택): 업데이트할 고객 설명metadataUpdateCustomer(object, 선택): 업데이트할 메타데이터를 key-value 쌍으로 입력
구독 관리
stripe/create_subscription
stripe/create_subscription
설명: 고객을 위한 새로운 구독을 생성합니다.파라미터:
customerIdCreateSubscription(string, 필수): 구독이 생성될 고객 IDplan(string, 필수): 구독을 위한 플랜 ID - 사용자가 플랜을 선택할 수 있도록 Connect Portal Workflow Settings를 사용하세요metadataCreateSubscription(object, 선택): 구독에 대한 추가 메타데이터
stripe/get_subscriptions
stripe/get_subscriptions
설명: 선택적 필터링으로 구독을 조회합니다.파라미터:
customerIdGetSubscriptions(string, 선택): 고객 ID로 구독을 필터링subscriptionStatus(string, 선택): 구독 상태별 필터링 - 옵션: incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaidlimitGetSubscriptions(string, 선택): 반환할 구독의 최대 개수(기본값은 10)
제품 관리
stripe/create_product
stripe/create_product
설명: Stripe 카탈로그에 새 제품을 생성합니다.파라미터:
productName(string, 필수): 제품 이름description(string, 선택): 제품 설명metadataProduct(object, 선택): 키-값 쌍으로 구성된 추가 제품 메타데이터
stripe/get_product_by_id
stripe/get_product_by_id
설명: Stripe 제품 ID로 특정 제품을 조회합니다.파라미터:
productId(string, 필수): 조회할 Stripe 제품 ID
stripe/get_products
stripe/get_products
설명: 선택적 필터링을 통해 제품 목록을 조회합니다.파라미터:
createdAfter(string, 선택): 이 날짜 이후 생성된 제품만 필터링 (Unix 타임스탬프)createdBefore(string, 선택): 이 날짜 이전 생성된 제품만 필터링 (Unix 타임스탬프)limitGetProducts(string, 선택): 반환할 최대 제품 수 (기본값 10)
금융 운영
stripe/get_balance_transactions
stripe/get_balance_transactions
설명: Stripe 계정에서 잔액 거래를 조회합니다.매개변수:
balanceTransactionType(string, 선택 사항): 거래 유형별 필터 - 옵션: charge, refund, payment, payment_refundpaginationParameters(object, 선택 사항): 페이지네이션 설정pageCursor(string, 선택 사항): 페이지네이션을 위한 페이지 커서
stripe/get_plans
stripe/get_plans
설명: Stripe 계정에서 구독 플랜을 조회합니다.매개변수:
isPlanActive(boolean, 선택 사항): 플랜 상태별 필터 - true는 활성 플랜, false는 비활성 플랜paginationParameters(object, 선택 사항): 페이지네이션 설정pageCursor(string, 선택 사항): 페이지네이션을 위한 페이지 커서
사용 예시
기본 Stripe 에이전트 설정
특정 Stripe 도구 필터링
구독 관리
금융 분석 및 보고
구독 상태 참조
구독 상태 이해하기:- incomplete - 결제 수단 또는 결제 확인이 필요한 구독
 - incomplete_expired - 결제가 확인되기 전에 만료된 구독
 - trialing - 체험 기간 중인 구독
 - active - 활성화되어 현재 사용 중인 구독
 - past_due - 결제에 실패했지만 여전히 활성화된 구독
 - canceled - 취소된 구독
 - unpaid - 결제에 실패하여 더 이상 활성화되지 않은 구독
 
