LNTWOOL
LNTWOOL
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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
BRBuildShip + Rowy
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