'Salesforce Einstein ChatBot
can anyone help how we can integrate a chatbot in a collaborative way? Ex- we need to create an einstein chatbot in salesforce, we are two developers one developer working on another chatbot change and one developer on another change.
How we can merge our changes in the chatbot?
Solution 1:[1]
Presuming Developer A is working in Org1 and Developer B is working in Org2...
Have each developer login to https://workbench.developerforce.com
Then go to Migration->Retrieve in the menu system.
Upload the following package.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>API_NAME_OF_DEVELOPERS_BOT_HERE</members>
<name>Bot</name>
</types>
<version>53.0</version>
</Package>
Then click next, next, and download the resulting ZIP file, and open it... each developer will now have their XML representation of their configuration.
Use GIT to merge the files together, and perform discretionary decisions on which sections win and lose when merging.
Now edit the package.xml file and replace API_NAME_OF_DEVELOPERS_BOT_HERE with the new name of the merged XML e.g. OUR_NEW_MERGED_BOT
Then create a package of new changes (effectively a ZIP file like this):
./src
./src/package.xml
./src/Bot/OUR_NEW_MERGED_BOT.xml
Then deploy the ZIP file using workbench (logging into the TARGET salesforce org this time):
Menu system: Migration->Deploy
Upload the ZIP and deploy to your target org.
Solution 2:[2]
try this command :
rails g controller Articles index create
You can create methods and views dynamically after If you typed controller name in command.
Solution 3:[3]
you are creating only a controller in your command not any methods that's why the views are not generated. If you need to generate views for the particular methods then you may run the below listed command.
rails g controller Articles index show
Here, index, show are the methods name. So, this command will create ArticlesController and also the respective view files.
Solution 4:[4]
You can use the scaffold option.
rails g scaffold Post name:string title:string content:text
This command will generate the following files.
| File | Purpose |
|---|---|
db/migrate/20100207214725_create_posts.rb |
Migration to create the posts table in your database (your name will include a different timestamp) |
app/models/post.rb |
The Post model |
test/unit/post_test.rb |
Unit testing harness for the posts model |
test/fixtures/posts.yml |
Sample posts for use in testing |
config/routes.rb |
Edited to include routing information for posts |
app/controllers/posts_controller.rb |
The Posts controller |
app/views/posts/index.html.erb |
A view to display an index of all posts |
app/views/posts/edit.html.erb |
A view to edit an existing post |
app/views/posts/show.html.erb |
A view to display a single post |
app/views/posts/new.html.erb |
A view to create a new post |
app/views/posts/_form.html.erb |
A partial to control the overall look and feel of the form used in edit and new views |
test/functional/posts_controller_test.rb |
Functional testing harness for the posts controller |
app/helpers/posts_helper.rb |
Helper functions to be used from the post views |
test/unit/helpers/posts_helper_test.rb |
Unit testing harness for the posts helper |
app/assets/javascripts/posts.js.coffee |
CoffeeScript for the posts controller |
app/assets/stylesheets/posts.css.scss |
Cascading style sheet for the posts controller |
app/assets/stylesheets/scaffolds.css.scss |
Cascading style sheet to make the scaffolded views look better |
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | codescaptain |
| Solution 3 | Parvesh Vats |
| Solution 4 | Christos-Angelos Vasilopoulos |
