To set up and run the platform, follow these steps:
- Python 3.8+
uagents
library
-
Fork the repository (click on the fork button and then create new fork)
-
Clone the repository:
git clone https://github.com/<yourusername>/FormFusion.git
-
Enter the folder and in the termiinal run this to install the required dependencies:
pip install -r requirements.txt
-
Start the Organisation Agent:
python organisation.py
-
Start the User Agent:
python user.py
Once the agents are running, the User Agent will automatically query the Organisation Agent for available forms at regular intervals. The user can then submit filled forms to the Organisation Agent.
-
Query Form:
- The User Agent sends a query request for the form titled "Internship Session".
- The Organisation Agent responds with the form details.
Query Request:
{ "body": "Please provide the form details", "title": "Internship Session" }
Query Response:
{ "forms": { "body": "This is an internship application form", "title": "Internship Session", "description": "Form to apply for internship", "fields": ["Name", "Email", "Phone", "Resume"] } }
-
Submit Form:
- The User Agent submits the filled form.
- The Organisation Agent stores the submission and responds with a success message.
Submit Request:
{ "title": "Internship Session", "fields": ["John Doe", "[email protected]", "123-456-7890", "Resume content here"] }
Submit Response:
{ "success": true }
If you encounter any issues or bugs, please report them in the Issues section of the GitHub repository.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
Please ensure your code adheres to the existing coding standards and includes appropriate tests.