ry3bread
ry3bread2d ago

Hi! Let's get 'assistant-scrape` working with OpenAI

Trying to use the Website Q&A flow. Secrets are working, and testing the flow in the BuildShip dashboard works--unsure how to do the rest on platform.openai.com and then: - test it in playground - use it casually by dropping links Here's my function definition, it needs work:
{
"name": "fetch_url_content",
"description": "Fetches and extracts content from the specified URL",
"strict": true,
"parameters": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL from which to fetch content"
}
},
"additionalProperties": false
}
}
{
"name": "fetch_url_content",
"description": "Fetches and extracts content from the specified URL",
"strict": true,
"parameters": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL from which to fetch content"
}
},
"additionalProperties": false
}
}
I know my endpoint, and the name of the node is left unchanged from the tutorial at https://docs.buildship.com/ai-assistant/openai-assistant
OpenAI Assistant Node – BuildShip
The OpenAI Assistant Node allows you to integrate the OpenAI Assistant API into your BuildShip workflows.
No description
5 Replies
AI Support
AI Support2d ago
AI Support Bot Information
<@682950834610241636> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2d ago
AI Response
To test your Website Q&A flow using the OpenAI platform and BuildShip integration, here are the steps you'll need to follow: 1. Set Up Your OpenAI Function Your function definition for fetching content from a URL looks almost complete but needs a slight modification to ensure it's accepted by the OpenAI API. Ensure that the parameters are structured correctly. The additionalProperties should be inside the properties dictionary. Here's the revised function definition:
{
"name": "fetch_url_content",
"description": "Fetches and extracts content from the specified URL",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL from which to fetch content"
}
},
"required": ["url"],
"additionalProperties": false
}
}
{
"name": "fetch_url_content",
"description": "Fetches and extracts content from the specified URL",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL from which to fetch content"
}
},
"required": ["url"],
"additionalProperties": false
}
}
2. Test in OpenAI Playground To test it in the OpenAI Playground, you need to: 1. Run your BuildShip workflow with the fetch_url_content function properly defined and connected to the OpenAI integration. 2. In the Playground, simulate the function call using a dummy URL to verify your function's behavior and response. You may have to manually set up a request environment that mimics the payloads expected in your workflows. 3. Casual Usage by Dropping Links For casual usage by dropping links: 1. You need to ensure the OpenAI integration can handle incoming requests with URLs and trigger the appropriate BuildShip nodes. 2. Once you've verified it's working in the playground, you can deploy the workflow and provide users with the simple interface, e.g., a chatbot or a web form to drop links. Important Elements - Node Name: The node name remains as fetch_url_content in your BuildShip workflow as per the tutorial. - Endpoint: Ensure the BuildShip endpoint integrates seamlessly with your OpenAI Assistant and checks the relevant Node Explorer from the tutorial for more specifics. You can refer to the comprehensive Website Q&A guide on BuildShip's documentation to fine-tune other components of your function and workflow setup. If you encounter difficulties or basic configuration issues persist, you're encouraged to reach out through BuildShip’s support for in-depth assistance.
BuildShip AI Support
ry3bread
ry3bread2d ago
I'd really prefer a human chat :) show me testing in the playground. the conversation flow.
Harini
Harini2d ago
@Luis Hi @ry3bread AI just in case replies with fast resources ..while humans take: a look, but rest assumed we take a look at everything 🙂 tagged Luis who will get back to you.
Luis
Luis2d ago
Hey @ry3bread, cant you elaborate on what you mean testing in the playground and leaving links? Or if you can explain what you're trying to achieve then we can give you more support.