1- [ ![ ChatBotKit] ( https://img.shields.io/badge/credits-ChatBotKit-blue.svg )] ( https://chatbotkit.com )
21[ ![ CBK.AI] ( https://img.shields.io/badge/credits-CBK.AI-blue.svg )] ( https://cbk.ai )
3- [ ![ Email] ( https://img.shields.io/badge/Email-Support-blue?logo=mail.ru )] ( mailto:support@chatbotkit.com )
2+ [ ![ Email] ( https://img.shields.io/badge/Email-Support-blue?logo=mail.ru )] ( mailto:support@cbk.ai )
43[ ![ Discord] ( https://img.shields.io/badge/Discord-Support-blue?logo=discord )] ( https://go.cbk.ai/discord )
54[ ![ PyPI] ( https://img.shields.io/pypi/v/chatbotkit.svg )] ( https://pypi.org/project/chatbotkit/ )
65[ ![ Follow on Twitter] ( https://img.shields.io/twitter/follow/chatbotkit.svg?logo=twitter )] ( https://twitter.com/chatbotkit )
@@ -39,6 +38,8 @@ This means you can focus on building great user experiences while ChatBotKit han
3938
4039## Installation
4140
41+ Install the SDK from PyPI with pip:
42+
4243``` bash
4344pip install chatbotkit
4445```
@@ -96,7 +97,7 @@ from chatbotkit.types import ConversationCompleteStreamItemType
9697
9798
9899async def main ():
99- async with ChatBotKit(secret = " your-api-key " ) as cbk:
100+ async with ChatBotKit(token = " your-api-token " ) as cbk:
100101 completion = cbk.conversation.complete(
101102 None ,
102103 {
@@ -116,13 +117,13 @@ asyncio.run(main())
116117
117118## SDK Client
118119
119- Create a client with your API key and access resources as attributes:
120+ Create a client with your API token and access resources as attributes:
120121
121122``` python
122123from chatbotkit import ChatBotKit
123124
124125cbk = ChatBotKit(
125- secret = " your-api-key " ,
126+ token = " your-api-token " ,
126127 base_url = " https://api.chatbotkit.com" , # optional
127128 run_as_user_id = " user-id" , # optional
128129 timezone = " America/New_York" , # optional
@@ -140,15 +141,15 @@ cbk.blueprint # Blueprint management (cbk.blueprint.resource/bulletin)
140141cbk.task # Task management (cbk.task.execution)
141142cbk.team # Team management
142143cbk.space # Space management (cbk.space.storage)
143- cbk.partner # Partner management (cbk.partner .user.token)
144+ cbk.user # User management (cbk.user.token)
144145cbk.policy # Policy management
145146cbk.portal # Portal management
146147cbk.usage # Usage reporting (cbk.usage.series)
147148cbk.magic # Magic AI generation (cbk.magic.prompt)
148149cbk.event # Event log access (cbk.event.log)
149150cbk.graphql # GraphQL operations
150151cbk.channel # Channel publish/subscribe
151- cbk.platform # Platform content (doc, example, manual, model, tutorial, ...)
152+ cbk.platform # Platform content (doc, example, manual, model, ...)
152153cbk.integration # Integrations (widget, slack, discord, whatsapp, telegram,
153154 # messenger, instagram, notion, sitemap, support, extract,
154155 # twilio, email, mcp_server, microsoft_teams, google_chat,
@@ -290,7 +291,7 @@ Options can be passed as keyword arguments or via a `ClientOptions` instance.
290291``` python
291292from chatbotkit import ChatBotKit, ClientOptions
292293
293- cbk = ChatBotKit(ClientOptions(secret = " your-api-key " , timezone = " UTC" ))
294+ cbk = ChatBotKit(ClientOptions(token = " your-api-token " , timezone = " UTC" ))
294295```
295296
296297## Error Handling
@@ -325,7 +326,7 @@ bot = await cbk.bot.create(BotCreateRequest.from_dict({
325326
326327## Documentation
327328
328- - ** Platform Documentation** : Comprehensive guide to ChatBotKit [ here] ( https://chatbotkit.com/docs ) .
329+ - ** Platform Documentation** : Comprehensive guide to the platform [ here] ( https://docs.cbk.ai/python-sdk ) .
329330- ** Platform Tutorials** : Step-by-step tutorials for ChatBotKit [ here] ( https://chatbotkit.com/tutorials ) .
330331
331332## Contributing
@@ -337,7 +338,7 @@ Encounter a bug or want to contribute? Open an issue or submit a pull request on
337338from the latest API specification, run the type sync script from the platform repo:
338339
339340``` bash
340- pnpm --dir sites/main script:sync-types:python
341+ pnpm --dir platform/platform script:sync-types:python
341342```
342343
343344Install the development dependencies and run the test suite with:
0 commit comments