Jequirity
Jequirity3mo ago

customise API Template

Hi, I am new to API calls. I followed the tutorial for using the OpenAI Assistant (Stream Response to Firestore) node. I am wondering is it possible to modify the node so it also stores a UserID. I have added the uid to the api post from FF and can see it in buildship but I cannot work out how to change the code so it adds the uid to the document in firebase. Anyone done anything like this?
1 Reply
AI Support
AI Support3mo ago
Yes, you can modify the Firestore node to include a UserID in the document. You can achieve this by storing the uid in a variable and then using that variable in the Firestore node to add it to the document. Here's a step-by-step approach: 1. Capture the uid: Make sure you have the uid available in your workflow. You can capture it from the API request or any other source. 2. Store the uid in a Variable: Use a variable node or a similar method to store the uid. 3. Modify the Firestore Node: Update the Firestore node to include the uid in the data that it writes to the document. You can refer to the BuildShip documentation on variables for more details on how to use variables: https://docs.buildship.com/basics/variables If you need to update the Firestore node, you can copy the content from the updated file and paste it as described here: https://docs.buildship.com/features/copy-paste#paste-node If you encounter any difficulties or need further assistance, you can contact support via in-app support: https://docs.buildship.com/support-messages
Using Variables – BuildShip
Learn how to use variables, contexts, and output values in your workflow logic.
Support Messages – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Copy & Paste – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.