stormy-gold
stormy-gold16mo ago

need help with new project

hi, I am michael- I just graduated from Occidental College with a BA in Cognitive Science. I am trying out a new personal project that uses voiceflow to make a little AI bot for me to help me when im working at my desk. I need help with the GPT API - any help would be greatly appreciated.
5 Replies
Tico | Voiceflow Assistant
Hi Michael, Here's a step-by-step guide to help you get started with your new Voiceflow project: 1. Create a New Project 1. Sign Up and Log In: Sign up for Voiceflow here and verify your email. 2. Create a Project: Once logged in, click the 'New Assistant' button on the top right of your workspace. 3. Name Your Assistant: Enter a name for your assistant. This can be changed later. 4. Select Modality and Language: Choose between chat and voice for your assistant and select the language you will be using. 2. Integrate GPT API 1. API Step in Voiceflow: - Add an API step to your Voiceflow project. - Configure the API step with the following details: - Endpoint: Use the appropriate endpoint for your API. - Headers: Include the Authorization header with your API key. - Body: Construct the request body to include your prompt and any other necessary parameters. 3. Example Configuration Here's an example of how you might set up the API step: - Headers:
{
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}

{
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}

- Body:
{
"prompt": "Your prompt here",
"max_tokens": 150
}

{
"prompt": "Your prompt here",
"max_tokens": 150
}

4. Testing and Iteration - Test Your Assistant: Use the 'Test' feature in Voiceflow to interact with your assistant and ensure the API integration works as expected. - Iterate: Based on the responses, tweak your prompts and configurations to improve performance. Additional Resources - Voiceflow API Documentation - Voiceflow Guides Feel free to explore these resources for more detailed instructions and examples. Good luck with your project!
stormy-gold
stormy-goldOP16mo ago
i need help getting the GPT api to pass in variables- just knowledge I want it to retain from conversations- to be used when it answers task questions. For example, it asks my name- my age- then I ask it what my name is in Latin... It should then be able to grab the variable for my name to answer the question. But I cannot figure out how to get it to pass that information in.
conscious-sapphire
conscious-sapphire16mo ago
hey Michael, happy to connect and discuss this. accept my friend request.
Steve B. | IntelleSync.ai
@usman.ashraf678 Can you help on here so others can benefit?
conscious-sapphire
conscious-sapphire16mo ago
@Steve B. | IntelleSync.ai, yes sure. Michael, regarding your problem, you should first make sure to capture the name and age response as variables. Then, when you can use the "set" block to call the GPT API and pass the stored variables as payload. Does that help you, Michael?

Did you find this page helpful?