Once organizations and bots from Glific are onboarded to the AI Platform, we need to sync the assistants associated with each Glific bot into our platform.
We already have an endpoint on the AI Platform that:
- Fetches assistant data from OpenAI
- Stores it in the internal assistant table
Create Python scrip which use csv provided by glific which has assistant_id and bot_name
For each bot/project:
- Use the project's API key
- Call the existing /sync-assistants endpoint with appropriate assistant_id and populate the table
Once organizations and bots from Glific are onboarded to the AI Platform, we need to sync the assistants associated with each Glific bot into our platform.
We already have an endpoint on the AI Platform that:
Create Python scrip which use csv provided by glific which has assistant_id and bot_name
For each bot/project: