- New twenty_crm.py: full CRUD for people, companies, notes via Twenty REST API - Lead capture now creates person + company in Twenty CRM automatically - New update_lead tool: enriches CRM profile as conversation progresses (job title, phone, city, budget, requirements) - Session meta stored in Redis to track Twenty person ID across messages - Docker-compose updated with TWENTY_CRM env vars - Chat bubble: pulsating ring animation with gradient background Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
747 B
Python
23 lines
747 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
anthropic_api_key: str = ""
|
|
redis_url: str = "redis://chatbot-redis:6379"
|
|
rocketchat_url: str = "https://chat.ai-impress.com"
|
|
rocketchat_auth_token: str = ""
|
|
rocketchat_user_id: str = ""
|
|
n8n_webhook_url: str = "https://n8n.ai-impress.com/webhook"
|
|
twenty_crm_url: str = "https://crm.ai-impress.com"
|
|
twenty_crm_api_key: str = ""
|
|
max_messages_per_session: int = 30
|
|
max_message_length: int = 500
|
|
conversation_window: int = 15
|
|
max_response_tokens: int = 300
|
|
conversation_ttl: int = 86400 # 24 hours
|
|
model: str = "claude-sonnet-4-6"
|
|
|
|
model_config = {"env_file": ".env"}
|
|
|
|
|
|
settings = Settings()
|