LNTWOOL
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
not exactly, it's feedback for @Harini regarding documenting these things, however the question i had about concurrency or how to handle a token it my situation, i still have not had someone from buildship give me any solution
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
unlear if the nodes we always used, for example API call, i am just guessing thats a "v1" node, do they intermix with the newer nodes? what implications
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
theres also no documentation on the custom domain name. had to figure that out myself... you have the the tool tips but they show when your like on the step itself.... if your trying to get into enterprise, they need to know everything upfront to plan, usually there is at least 2 silo'd teams 3 with security that all have to cross communicate something like that
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
you should add in the documentation, if you make ANY change to the INPUT on your main flow, byebye input value. No warning, nothing. I just randomly found them disappearing... turns out, if i change "required" to "not required" just deletes my variable within the node trigger input
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
the trigger separation was a big change, and still unclear. I wanted to have multiple rest endpoint's, which i can do, but the schema for the rest endpoint affects the rest of them, and LOGGING, i need to understand what is happening if there is a failure at that trigger level... i did not look into this one too much, but as far as i can tell, but the trigger area is a black box, no clue if something is wrong there
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
Well, just my opinion - how concurrency is handled, based on my testing its FIFO, the scope of the variables is unclear, for example a workflow variable, is that at the execution scope? or it simply persists for the workflow (which is what i found out). Is there any way to session scoped variables? or expose session information, akin to something like "threadId" from open AI. My use case was a token give from twilo, that every node needed, but only for the session, or i could have done execution. The user dual auth's through an AI agent that is not in build ship, the api fetches the token, then there are 3-4 api calls after that can vary but its not much longer than 3-4 min. So secrets manager seems silly, and writing to a table i just did not want to deal with that headache. So i still don't have a solution. well i do, i am sending the thread id (even though build ship is not hosting the agent) to hash it basically store the variable in the hashed state, then delete it. I can tell you, this is something you are going to need, the community is struggling with agents and authentication in general. There are frameworks coming out, but you could have a big win if you created something specifically for agent auth to services, access to the agent, ,etc
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
Yeah, i am the founder of https://www.naitive.cloud, we build agents, lots of them. Sometimes we build with the OpenAI nodes, sometimes not, but i basically always use build ship as the tool layer no matter what. We have tooling that builds all of our tools based off the open API spec, but we built it based on exactly how you export api's. Its just a huge time suck, and i have to say the V2 launch has been rough, we've been hit with disappearing inputs, all kinds of weird stuff. It happens, your growing startup we get it. Just the lack of documentation prior to launch has given me a bit of pause to be honest
13 replies
BBuildShip
•Created by LNTWOOL on 12/8/2024 in #💬・general
LNTWOOL - So i cannot export a single API i hav...
😦
13 replies
BBuildShip
•Created by LNTWOOL on 12/5/2024 in #💬・general
LNTWOOL - Buildships doc's are in dire need of ...
Sorry, did not type correctly. Authenticated user flow: Client -> AI Agent (not in Build Ship) TO BUILDSHIP API's-> BUILDSHIP API's make 4 or 5 outbound (outside of Build Ship) API Calls to a scheduling system, that happen over a roughly 5 minute period that must include bearer token -> Scheduling system API's -> back to Buildship Nodes -> return to AI agent ->AI agent presents to Client
5 replies
BBuildShip
•Created by LNTWOOL on 12/5/2024 in #💬・general
LNTWOOL - Buildships doc's are in dire need of ...
Sorry, didn't read through your response... -- To be clear, Authenticated user flow: Client -> AI Agent (not in Build Ship) -> 4 or 5 outbound (outside of Build Ship) API Calls that happen over a roughly 5 minute period that must include bearer token -> AI agent -> Client. -- Authentication Flow: AI Agent (not in build ship) on behalf of the user -> Sends outbound API request to Twilio for the dual auth short code -> The user types dual auth code the user receives via SMS into agent -> Agent verifies by -> another API request to Twilio -> If code is good, the token in question here, a bearer token is returned. So i am not securing my Build Ship API's, I am making outbound API calls to get authenticated for the subsequent API call's from build ship nodes -> to API's outside of build then talk to other API's via Build Ship. My questions has been around sessions concurrency and isolation, but no one has been able to answer the question. So if that question cannot be answered, is there any unique session based, environment variables that maybe i can use to store the variables in a consistant but unique way. The client itself does not do the authentication, thus nothing is sent to Build Ship, thus i have to store it because I'm not storing it on an AI agent. I would this this use case can't be that unique, take the agent out of the equation, for a production API i would think you have a framework around this
5 replies
BBuildShip
•Created by LNTWOOL on 12/5/2024 in #💬・general
LNTWOOL - Buildships doc's are in dire need of ...
I agree - such short lived tokens commiting them to a secrets store seemed be alot of overhead. so if i have 300 users, it's not an issue to us
built in secret store?
5 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
I sent in a ticket, unless i missed it i never got a response
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
return {
success: true,
payload: {
token,
userDetails,
sessionVariables: {
authToken: token,
userId: userDetails.id,
userPhone: userDetails.phoneNumber,
userName: userDetails.name,
userRate: userDetails.rate,
recentShops: userDetails.recentShops,
dependents: userDetails.dependents,
recentCuts: userDetails.recentCuts,
preferredLocation: preferredLocation
}
}
};
} else {
logging.log('Failed to retrieve user details:', userData);
throw new Error('Failed to retrieve user details');
}
} catch (error) {
logging.log('Error during SMS verification process:', error);
throw error;
}
}
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
// Store all session variables
await env.set([
{ name: 'authToken', value: token },
{ name: 'userId', value: userDetails.id.toString() },
{ name: 'userPhone', value: userDetails.phoneNumber },
{ name: 'userName', value: userDetails.name },
{ name: 'userRate', value: userDetails.rate.toString() },
{ name: 'recentShops', value: recentShops },
{ name: 'dependents', value: dependents },
{ name: 'recentCuts', value: recentCuts },
{ name: 'preferredLocation', value: preferredLocation }
], 'workflow');
logging.log('Session variables stored successfully');
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
via sms (twilio). The text will include a link to the ai agent, within the link will be an auth token that is generated by twilio, it's unique to the user, and should only really persist for the session, but not a big deal as long as it stays tied to only that user. I am deleting the var's after the workflow is complete, So the link will always have the token that authenticates and identifies the user, the owner wants a one click experience where the agent greets them with information it already fetches based on the token. I have that all working but through the SMS, type in your code, then gets a token method which he does not want. So i want to store the token within buildship for the session, not with the agent for obvious reasons. I don't know how these workflow variables work. If i am using these, will other sessions using the API then use whatever token is stored there? How can i store the token within buildship for a session and ensure no other connections to the api endpoint use that variable? here is the code snip await env.set([
if (userData && userData.success) {
const userDetails = userData.payload.user;
logging.log('User details retrieved, storing session variables...');
// Serialize complex data types
const recentShops = JSON.stringify(userDetails.recentShops);
const dependents = JSON.stringify(userDetails.dependents);
const recentCuts = JSON.stringify(userDetails.recentCuts);
const preferredLocation = userDetails.recentShops[0];
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
So here is the workflow. I am building an ai agent that handles two scenarios for a large mens haircut business. Cancelations and Reschedules. just context. They send out reminders 2 hours before and 30 minutes before the appoitment...this is when a lot of reschedules happen..
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
let me grab my code snippet real quick
10 replies
BBuildShip
•Created by LNTWOOL on 11/12/2024 in #💬・general
LNTWOOL - How does build ship handle concurrenc...
thank you! yes onoe more! i am on paid plan have been for a while
10 replies