https://retellai.com/?utm_source=discord&utm_medium=seo logo
we are using API's Create Chat Completion to simul...
# ❓・ai-evy-support
m
@AI Evy we are using API's Create Chat Completion to simulate an chat conversation. It's working but when we check the Chat History in Retell AI's dashboard, it says no transcript. Are we missing anything?
a
Thanks for tagging me @mpunk. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, when using the Create Chat Completion API, transcripts are automatically stored in Retell's database [(1) ]() . The conversation history should appear in the Chat History dashboard. To check if your chat sessions are being properly recorded, you can retrieve chat details using the Get Chat API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(chatResponse.agent_id) ;
The response should include a
transcript
field that contains the conversation history [(3) ]() [(2) ]() . You can also list all chat sessions to verify they're being created properly [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponses = await client.chat.list() ;
console.log(chatResponses) ;
If the transcript field is empty or missing, there might be an issue with how the chat session was created or if the conversation hasn't been properly processed yet. Make sure you're creating the chat session first using the create-chat API endpoint before using create-chat-completion [(1) ]() .
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[2] Get Chat](https://docs.retellai.com/api-references/get-chat) [[3] List Chat](https://docs.retellai.com/api-references/list-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.