Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form UI #358

Open
gmpetrov opened this issue Mar 12, 2024 · 4 comments
Open

Form UI #358

gmpetrov opened this issue Mar 12, 2024 · 4 comments
Assignees

Comments

@gmpetrov
Copy link
Owner

-> To make forms more reliable we're going to build a more traditional form experience

Re-use current form editor

4 vertical tabs

  • 1- Main Informations
    Image
  • 2- Fields
    • email (✅)

    • phone number (✅)

    • text (✅)

    • text area (✅)

    • select (✅)

    • file upload (✅)

    • multi choice select

    • checkbox

    • date

    • number

-> Add ability to re-order fields

  • 3- End Screens
    • keep end screen config + add a field for displaying a message at the end (success message)
  • 4- Webhooks

Agent Tool Integtation

How to hook it up with the agent form tool ? 🤔
-> tool form call when form must be shown
-> add metadata to the message (see http tool approvals)
-> show form
-> after submit find the right way to update conversation history to show that a form as been filled

@gmpetrov
Copy link
Owner Author

2nd round

Problems

  • How to handle ui forms on other channels than web (e.g whatsapp)?

Solution

  • Access the form via an URL
  • In order link a form to a conversation, possiblity to pass a conversationId to the form URL
  • When form is linked to an agent (via form tool)
    • triggers
      • By Agent
      • At beginning of form
      • After N Form
    • Adapt form tool to be triggered when for need to be shown
    • First implementation → When tool form is called → Send back an url to the form
      • When form is submitted → create a new message in conversation to inform user + agent that form has been successfully submitted
  • Then after the link implementation, add optimization for web components to show form directly in conversation
  • ? Add other triggers (Show form at beginning of conversation or after 1 message)
  • Finally migrate lead form to ui form

Open question?

  • Where to put form tool description
    • → In tool form setting?
    • → In system prompt?
    • → Both?

@OdapX
Copy link
Collaborator

OdapX commented Mar 26, 2024

Form X Agent -> Tool.config

@OdapX
Copy link
Collaborator

OdapX commented Apr 3, 2024

Migrate Lead Capture Or rather delete it (after we onboard all users to the new form ui)?
seems like it's just a debt

@gmpetrov
Copy link
Owner Author

gmpetrov commented Apr 5, 2024

Merged #94d31ce

Todo

  • Select dropdown styles fix
    • Image
  • Font issue
    • Image

D&d

  • Image

@gmpetrov gmpetrov assigned gmpetrov and unassigned gmpetrov and OdapX Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants